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,596 | 1 | null | null | 0 | 23 | Given a ReactiveCrudRepository with specified @Query which backend .
Other Spring repository queries succeeds (findById, findByStockName). The structure is the same on both databases.
What can cause the error? Any ideas?
Any help is appreciated!
The entity (Stock.java):
```
@Data
@NoArgsConstructor
@AllArgsConstructor... | Spring ReactiveCrudRepository @Query with PostgreSql throws PostgresqlBadGrammarException: [42P01] | CC BY-SA 4.0 | null | 2023-03-02T15:32:44.357 | 2023-03-02T15:46:09.580 | null | null | 8,057,394 | [
"java",
"spring",
"postgresql",
"project-reactor",
"r2dbc"
] |
75,617,668 | 2 | null | 75,617,335 | 0 | null | ```
for (i in scanned_list.indices) {
single_scanned_value = scanned_list[i]
if (single_scanned_value.contains("https")){
//open browser.
}
break;
}
```
For open browser, follow this link:
[https://www.tutorialkart.com/kotlin-android/android-open-url-in-browser-activity/](htt... | null | CC BY-SA 4.0 | null | 2023-03-02T15:38:54.667 | 2023-03-03T15:23:10.883 | 2023-03-03T15:23:10.883 | 8,445,079 | 8,445,079 | null |
75,617,663 | 1 | null | null | 0 | 15 | Is there any way to convert a UTC, defined with models.CharField, to datetime using a built-in filter template tag? Or must i use a custom function (see below)? I have found nothing on this specific topic online. Here is an example
Inside models.py:
```
...
boarding_time_utc = models.CharField(max_length=15, default="1... | Django built-in template tag to convert UTC to datetime? | CC BY-SA 4.0 | null | 2023-03-02T15:38:42.000 | 2023-03-02T15:57:01.790 | 2023-03-02T15:57:01.790 | 17,562,044 | 10,575,420 | [
"python",
"django",
"django-models",
"django-templates"
] |
75,617,665 | 2 | null | 75,616,865 | 0 | null | When I ping something that is not there, I do not always get an `Unreachable` in the output. For example:
```
$ ping -c1 10.1.1.1
PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data.
--- 10.1.1.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
```
But actually, you don't care what is the o... | null | CC BY-SA 4.0 | null | 2023-03-02T15:38:45.007 | 2023-03-02T18:39:03.663 | 2023-03-02T18:39:03.663 | 6,908,895 | 6,908,895 | null |
75,617,666 | 2 | null | 75,612,857 | 0 | null | Here is one way to
> add constantline in my chartcontrol showing average of workingday.
This code uses a different approach for instantiating the `ConstantLine`. To keep the example to a minimum, the series is created ad hoc for testing purposes only. The answer should still work with your bound data table.
---
[](h... | null | CC BY-SA 4.0 | null | 2023-03-02T15:38:47.210 | 2023-03-02T15:43:57.523 | 2023-03-02T15:43:57.523 | 5,438,626 | 5,438,626 | null |
75,617,656 | 1 | null | null | -1 | 24 | I have an abstract class with 2 type arguments and some implementations of said class. In implementation 1 the type arguments are `<string, string>` but for implementation 2 they are for example `<int, string>`. Is there a way to add those different implementations to a list like the following and call the abstract `Ru... | Is it possible to create a list of different generic abstract class implementations? | CC BY-SA 4.0 | null | 2023-03-02T15:38:13.403 | 2023-03-03T07:38:16.593 | 2023-03-03T07:38:16.593 | 21,320,013 | 21,320,013 | [
"c#",
"generics",
"abstract-class",
"generic-type-argument"
] |
75,617,671 | 2 | null | 75,617,550 | 0 | null | Serializing js objects can be done in much simplier way.
Use `JSON.stringify(<object>)` to turn objects into JSON strings.
Use `JSON.parse(<string>)` to turn JSON strings into objects.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:38:59.530 | 2023-03-02T15:38:59.530 | null | null | 20,952,055 | null |
75,617,667 | 1 | null | null | 0 | 21 | In Jest I want to launch browser from `setupFilesAfterEnv` not to repeat this step in evey test file, using Jest and Playwright. Despite browser launching, and global variables accessible for test, I get error: `TypeError: global.browser.newContext is not a function'. I'm using Babel to use TS in Jest
# My setup
##... | How to start Playwright browser in jest from setupFilesAfterEnv hook, so it will be acessible inside test file, using TypeScript? | CC BY-SA 4.0 | null | 2023-03-02T15:38:54.550 | 2023-03-02T16:58:30.803 | 2023-03-02T15:51:06.467 | 2,292,934 | 2,292,934 | [
"typescript",
"jestjs",
"playwright",
"babel-jest"
] |
75,617,670 | 2 | null | 59,820,127 | 0 | null | ```
from rest_framework_simplejwt.tokens import RefreshToken
class UserSerializer(ModelSerializer):
"""Serializers for User objects"""
jwt_token = serializers.SerializerMethodField('get_jwt_token')
class Meta:
model = get_user_model()
fields = ('email', 'password','jwt_token')
extra_kwa... | null | CC BY-SA 4.0 | null | 2023-03-02T15:38:57.340 | 2023-03-02T15:38:57.340 | null | null | 14,918,817 | null |
75,617,674 | 1 | null | null | 0 | 9 | [Here is the ground control points](https://i.stack.imgur.com/mxaa9.png)
Thank you.
I have tried to use cloud compare to align this point cloud with the ground cloud points but the latitude and longitude values was not in alignments with the actual Geographic Coordinate system.
| I have my LiDAR point cloud with a Cartesian CS. I took three ground control points. I would like to convert it to Geographic Coordinate systems | CC BY-SA 4.0 | null | 2023-03-02T15:39:15.687 | 2023-03-02T15:39:15.687 | null | null | 21,320,097 | [
"python",
"r"
] |
75,617,677 | 2 | null | 75,617,572 | 0 | null | Try something like this to convert `\r` to `\n` with `sed`. If it is available on Os X
```
tail -f path_to_file | sed 's/\\r/\n/g'
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:39:26.000 | 2023-03-02T15:39:26.000 | null | null | 1,684,293 | null |
75,617,672 | 2 | null | 75,617,540 | 1 | null | The toc you see on the first page is not the one you inserted manually. It was automatically inserted. You can use the `toc: false` option to switch this off.
```
---
title: "My Book"
date: "`r Sys.Date()`"
author: "Author"
output:
bookdown::pdf_document2:
keep_tex: true
number_sections: true
toc: false
---
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:39:00.590 | 2023-03-02T15:39:00.590 | null | null | 2,777,074 | null |
75,617,679 | 2 | null | 75,613,563 | 1 | null | The short answer is you can't. It's important to recognize that "[Serverless SQL](https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/on-demand-workspace-overview)" is not SQL Server, meaning these aren't actual database objects, and these aren't really Tables. It's akin to Polybase, an abstraction of a schem... | null | CC BY-SA 4.0 | null | 2023-03-02T15:39:32.473 | 2023-03-02T15:39:32.473 | null | null | 75,838 | null |
75,617,664 | 2 | null | 16,913,529 | 0 | null | For Ubuntu 22.10, the filetype associations are defined in a hierarchy of files called `mimeapps.list`:
```
$ locate mimeapps.list
~/.config/mimeapps.list
~/.local/share/applications/mimeapps.list
/snap/core/14447/usr/share/applications/mimeapps.list
/snap/core/14784/usr/share/applications/mimeapps.list
/snap/core18/26... | null | CC BY-SA 4.0 | null | 2023-03-02T15:38:42.657 | 2023-03-03T19:43:10.227 | 2023-03-03T19:43:10.227 | 553,865 | 553,865 | null |
75,617,678 | 1 | null | null | 0 | 19 | I am trying to find solution when integration uses "updatelist" to update 5 fields on sales order lines. The issue comes when we have more than 5 lines on sales order. We are sending multiple "UpdateList" SOAP request for same sales order at the same time.
See the screenshot of SOAP logs below. Some of the lines failed... | How to fix SOAP - UpdateList NetSuite Error: Record has been changed | CC BY-SA 4.0 | null | 2023-03-02T15:39:29.777 | 2023-03-03T22:47:29.033 | null | null | 5,731,188 | [
"web-services",
"soap",
"integration",
"netsuite",
"mulesoft"
] |
75,617,673 | 2 | null | 34,819,168 | 0 | null | Another solution base on the @themadTechnician to compile results of several files
```
$finalresult = @()
Get-ChildItem "D:\Data\CrystalDiskMarkResults" |
Foreach-Object {
$FullFileName = $_.FullName
$Filename = $_.Name
$content = Get-Content $FullFileName
$counter = 1
$Results = $content | Where{$_ -match... | null | CC BY-SA 4.0 | null | 2023-03-02T15:39:15.027 | 2023-03-02T17:04:10.753 | 2023-03-02T17:04:10.753 | 5,001,714 | 5,001,714 | null |
75,617,683 | 2 | null | 13,426,477 | 0 | null | There is a [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for Emacs Lisp at [https://github.com/Wilfred/tree-sitter-elisp/blob/4b0e4a3891337514126ec72c7af394c0ff2cf48c/src/grammar.json](https://github.com/Wilfred/tree-sitter-elisp/blob/4b0e4a3891337514126ec72c7af394c0ff2cf48c/src/grammar.json)
This i... | null | CC BY-SA 4.0 | null | 2023-03-02T15:40:08.407 | 2023-03-02T15:40:08.407 | null | null | 21,313,424 | null |
75,617,687 | 2 | null | 75,616,145 | 2 | null | The `XpressDirect` connector currently only supports linear and quadratic constraints/objectives. General non-linear expressions (like square root) are supported at the moment.
You can square both sides of your equations, that should work.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:40:31.880 | 2023-03-02T15:40:31.880 | null | null | 11,260,716 | null |
75,617,686 | 2 | null | 75,617,636 | 1 | null | Using command substitution
```
var=$(curl http://api.nbp.pl/api/exchangerates/rates/a/usd)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:40:27.413 | 2023-03-02T15:40:27.413 | null | null | 15,381,660 | null |
75,617,675 | 1 | null | null | 0 | 19 | I have created the attached data visualisation using geopandas. When I save this as a png the background becomes black (in the attached picture the background is not black) and therefore the scale on the legend becomes invisible. Is there any way to change the colour of the legend?
nothing I have tried was successful
t... | Any way to change the colour of a legend on a geopandas map? | CC BY-SA 4.0 | null | 2023-03-02T15:39:22.773 | 2023-03-02T17:11:27.997 | 2023-03-02T17:11:27.997 | 20,614,401 | 20,614,401 | [
"python",
"visualization",
"geopandas"
] |
75,617,680 | 1 | 75,618,537 | null | 0 | 22 | Trying to work around a restriction that is beyond my control. We need to do schema validation as part of our work but nothing in the system is allowed to access http only https. I tried changing the schema xmlns to be https in XMLSpy but that doesn't validate despite me being able to see it in a browser when I go to... | Why can't I reference XMLSchema as https? | CC BY-SA 4.0 | null | 2023-03-02T15:39:36.510 | 2023-03-02T16:56:44.093 | null | null | 6,109,467 | [
"xml",
"xsd"
] |
75,617,691 | 2 | null | 69,003,782 | 0 | null | I was having the exact same problem, with the difference that my PHP code worked perfectly on my dev machine... so I decided to check if I was using the same PHP version on both machines and it turned out that I had 7.4.20 on my dev machine and 7.4.33 on the server... so I decided to install my version on the server an... | null | CC BY-SA 4.0 | null | 2023-03-02T15:41:05.173 | 2023-03-02T15:41:05.173 | null | null | 182,233 | null |
75,617,685 | 1 | null | null | 0 | 9 | According to documentation I have to specify the `LOGGING` variable in `settings.py`
Is it possible to pass logger from my custom module in django instead?
For example, I have a following module:
```
import logging
import os
class CustomFormatter(logging.Formatter):
grey = "\x1b[38;20m"
blue = "\x1b[1;34m"
... | Django logging - logger from a module? | CC BY-SA 4.0 | null | 2023-03-02T15:40:23.180 | 2023-03-02T15:40:23.180 | null | null | 4,239,879 | [
"python",
"django",
"logging"
] |
75,617,682 | 1 | null | null | 0 | 24 | I keep getting error
```
Error: An error occurred trying to start process '/bin/bash' with working directory '/Users/runner/work/java-sdet/java-sdet-bootcamp'. No such file or directory
```
[This is my GitHub Action run](https://github.com/ultimate-qa/java-sdet/actions/runs/4315604347/jobs/7530210265)
This is [the yml... | Getting "Error: An error occurred trying to start process '/bin/bash' with working directory '/Users/runner/work/...'. No such file or directory | CC BY-SA 4.0 | null | 2023-03-02T15:39:49.037 | 2023-03-02T15:39:49.037 | null | null | 1,579,407 | [
"github-actions",
"cicd"
] |
75,617,690 | 1 | null | null | 0 | 16 | I'm using JOOQ with Postgresql, where I have a few columns of the JSONB type. Using the JOOQ code generator directly on the database itself (using org.jooq.util.postgres.PostgresDatabase) works just fine, all generated classes use the JSONB type.
However, when switching to code generation via SQL scripts (using org.joo... | JOOQ interpreting JSONB as JSON when generating from script | CC BY-SA 4.0 | null | 2023-03-02T15:40:43.103 | 2023-03-03T08:47:17.830 | null | null | 17,569,765 | [
"postgresql",
"jooq",
"jooq-codegen"
] |
75,617,692 | 2 | null | 75,614,807 | 0 | null | Got it. At the `selector` attribute, in the `pattern` sub key I had to provide the name of the existing pipeline on the `bitbucket-pipelines.yml` file I want to be called to be executed on the request.
I was doing this
```
"selector": {
"type": "custom",
"pattern": "Deploy to environment"
}
```
I need to do t... | null | CC BY-SA 4.0 | null | 2023-03-02T15:41:06.350 | 2023-03-02T15:41:06.350 | null | null | 2,773,461 | null |
75,617,684 | 1 | null | null | 1 | 65 | Literals don't seem to interplay well with preprocessor macros. For example, I have this preprocessor definition `CONFIG_FADE_DELAY_MS` that I want to translate to `std::chrono::milliseconds`. But the `ms` literal needs to be written close up to it, the the compiler doesn't understand `ms` when there is a space in betw... | Literals don't work for preprocessor macros | CC BY-SA 4.0 | null | 2023-03-02T15:40:08.523 | 2023-03-02T16:47:34.453 | 2023-03-02T16:14:17.147 | 65,863 | 11,770,390 | [
"c++",
"preprocessor",
"c++-chrono",
"user-defined-literals"
] |
75,617,698 | 2 | null | 75,450,558 | 1 | null | Digging into [https://github.com/chmouel/mongars](https://github.com/chmouel/mongars) should give you enough to get started.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:41:22.933 | 2023-03-02T15:41:22.933 | null | null | 21,320,260 | null |
75,617,688 | 1 | 75,617,840 | null | 2 | 40 | I have a dataframe containing bills and in this dataframe a column named `contents` contains customers names inside a no formatted / standardized string, like this :
```
NUMBIL DATE CONTENTS AMOUNT
0 858 01/01/23 Billed to HENRY 25$
1 863 01/01/23 ... | How to select rows in a dataframe based on a string customers list? | CC BY-SA 4.0 | null | 2023-03-02T15:40:39.910 | 2023-03-02T21:56:45.760 | null | null | 13,460,543 | [
"python",
"pandas",
"dataframe",
"csv"
] |
75,617,681 | 2 | null | 38,623,138 | 0 | null | In order to make this work globally I had to do the following. Updating only the `launch.json` file only solves it in the folder where VSCode currently is open.
1. Locate the settings.json file. Windows %APPDATA%\Code\User\settings.json macOS $HOME/Library/Application\ Support/Code/User/settings.json Linux $HOME/.conf... | null | CC BY-SA 4.0 | null | 2023-03-02T15:39:46.903 | 2023-03-02T15:39:46.903 | null | null | 8,162,025 | null |
75,617,694 | 1 | null | null | 0 | 15 | ```
"configuration": {
"title": "OpenAI",
"configurationDefaults": {
"files.autoSave": "onFocusChange"
},
"properties": {
"Model":{
"description": "The model to use for completion",
"type": "string",
"default": "code-davinci-002"
},
```
Afte... | VS Code Extensions API reading values of self defined configurations not working | CC BY-SA 4.0 | null | 2023-03-02T15:41:13.127 | 2023-03-02T15:47:27.307 | 2023-03-02T15:47:27.307 | 836,330 | 19,775,454 | [
"visual-studio-code",
"vscode-extensions"
] |
75,617,697 | 2 | null | 75,617,624 | 2 | null | Well you can only mutate variables in a mutable binding, `fn name(a: i32)` creates an immutable binding for `a`, `mut a` is how we make it mutable to allow mutation. The same thing is true for a let binding: `let a = 99;` creates an immutable one, to make it mutable we use `let mut a = 99;`
| null | CC BY-SA 4.0 | null | 2023-03-02T15:41:22.730 | 2023-03-02T15:41:22.730 | null | null | 442,760 | null |
75,617,693 | 1 | null | null | -3 | 30 | I have a simple python module called myscript.py with a couple classes that I want to use in my flask app, but for some reason every time I run my app I get an attribute error, stating the module doesn't have the attribute that I called. However, if I run the script that imports my module on its own, the error doesn't ... | How do I import a python module into my flask app? | CC BY-SA 4.0 | null | 2023-03-02T15:41:07.693 | 2023-03-02T15:49:52.800 | 2023-03-02T15:49:52.800 | 400,617 | 17,621,482 | [
"python"
] |
75,617,704 | 2 | null | 75,617,631 | 0 | null | i got the idea to solve it with envs.
For example you define the env:
```
MY_VAR=myvalue
```
and then you call it in you docker-compose:
```
services:
app:
image: repo/my-test-app
container_name: ${MY_VAR}
labels:
com.example.appname: ${MY_VAR}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:41:41.783 | 2023-03-02T15:41:41.783 | null | null | 15,362,688 | null |
75,617,703 | 1 | null | null | 0 | 18 | I'm exporting a query from access with the ImportExportSpreadsheet macro function, and it seems to be ignoring the "order by" clause in the query, and the data gets mixed up in the resulting excel file. The only issue I can think of that is causing the issue, is that the field the query is ordered by is not an actual d... | Access exportspreadsheet ignoring order by clause | CC BY-SA 4.0 | null | 2023-03-02T15:41:34.010 | 2023-03-03T16:50:45.563 | 2023-03-03T16:50:45.563 | 21,320,192 | 21,320,192 | [
"excel",
"ms-access"
] |
75,617,696 | 2 | null | 73,494,255 | 0 | null | I think maybe you should lose the
```
async =>
await showDialog<void>(
```
from your `showCustomTrackingDialog` method.
Here is my working example, but with the [permission_hanndler](https://pub.dev/packages/permission_handler) package. It's basically the same thing, I'm just calling another method.
```
Future<v... | null | CC BY-SA 4.0 | null | 2023-03-02T15:41:16.630 | 2023-03-02T15:41:16.630 | null | null | 9,185,411 | null |
75,617,702 | 2 | null | 75,617,196 | 1 | null | OK. So it's not necessary to use the callback form of `setArray` here.
Instead, let's wrap up the `removeValue` function in a `useCallback` hook and use the non-callback version of `setArray`:
```
const removeValue = React.useCallback(() => {
const newArrayValue = array.filter((item) => item !== array[0])
setAr... | null | CC BY-SA 4.0 | null | 2023-03-02T15:41:29.833 | 2023-03-02T15:41:29.833 | null | null | 14,357 | null |
75,617,699 | 2 | null | 66,594,219 | 0 | null | I had the same problem and I implemented this workaround:
```
Dim con As ADODB.Connection
Dim localName As String
Dim path() As String
Dim fso As New FileSystemObject
Set con = New ADODB.Connection
con.Provider = "Microsoft.ACE.OLEDB.12.0"
con.Properties("Extended Properties") = "Excel 12.0;HDR=Yes;IMEX=1... | null | CC BY-SA 4.0 | null | 2023-03-02T15:41:25.223 | 2023-03-02T15:46:27.267 | 2023-03-02T15:46:27.267 | 3,027,266 | 3,027,266 | null |
75,617,700 | 2 | null | 75,617,394 | 1 | null | In order to use `venue.name` in the HTML string, you can use [str.format()](https://docs.python.org/3.12/library/stdtypes.html#str.format) to insert the `venue.name` variable into the popup content, like so:
```
def index(request):
venue_markers = Venue.objects.all()
m = folium.Map(location=center_location,zoom... | null | CC BY-SA 4.0 | null | 2023-03-02T15:41:27.797 | 2023-03-02T15:41:27.797 | null | null | 17,562,044 | null |
75,617,705 | 2 | null | 75,554,072 | 0 | null | It will run your App. Don't worry. All event's like this will run your App and onCreate(). It applies to Manifest Broadcast receivers, AlarmManager timers, etc.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:41:48.100 | 2023-03-02T15:41:48.100 | null | null | 7,114,714 | null |
75,617,708 | 1 | null | null | -1 | 36 | I have initially installed php7.2 but bcz of the change required i have upgraded the php version to 8.1
this leads to an error in accessing the application
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".
after reading couple of solution, i tried to uninstall the e... | How to remove PHP previous versions installed in Ubuntu Server | CC BY-SA 4.0 | null | 2023-03-02T15:42:07.453 | 2023-03-02T15:44:18.237 | null | null | 19,436,422 | [
"php",
"ubuntu"
] |
75,617,701 | 1 | null | null | 0 | 26 |
I am trying to host a shiny app on shiny-server (Ubuntu). I have set up everything as shown in the official docs (using `nginx`).
Upon starting, the app needs to load a workspace (which can be updated in the background).
In RStudio the app works fine and loads the workspace as intended.
Running on shiny-server, the a... | Loading Workspace in shiny-App on shiny-server | CC BY-SA 4.0 | null | 2023-03-02T15:41:27.733 | 2023-03-03T12:20:18.213 | 2023-03-03T09:28:51.197 | 8,757,228 | 8,757,228 | [
"r",
"shiny",
"shiny-server"
] |
75,617,711 | 2 | null | 75,617,550 | 2 | null | `for-in` loop is iterating over the keys of the array, which are indices, returned by `textarea.value.split("\n")`, not over the elements themselves.
```
var lines = textarea.value.split("\n");
for (var i = 0; i < lines.length; i++) {
// expected "key: value" string
console.log(lines[i]);
...
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:42:23.307 | 2023-03-02T15:42:23.307 | null | null | 21,288,555 | null |
75,617,719 | 2 | null | 75,617,055 | 0 | null | this is not exactly the answer to your specific question, but if the problem is only to validate schema and be in sync with the server for meta data, why not using something similar like: [https://the-guild.dev/graphql/codegen](https://the-guild.dev/graphql/codegen).
There are also other tooling's which can generate Gr... | null | CC BY-SA 4.0 | null | 2023-03-02T15:43:22.883 | 2023-03-02T15:43:22.883 | null | null | 182,420 | null |
75,617,713 | 2 | null | 75,617,516 | 0 | null | You need to define the types outside the jitclass.
```
from numba import int32
from numba.types import Tuple, DictType, UniTuple
key_type = UniTuple(numba.types.int32, 2)
value_type = int32
@jitclass({
'shape': Tuple((int32, int32)),
'dict': DictType(key_type, value_type),
})
class BigramCounts:
def __in... | null | CC BY-SA 4.0 | null | 2023-03-02T15:42:50.613 | 2023-03-02T15:42:50.613 | null | null | 1,755,432 | null |
75,617,706 | 1 | null | null | -2 | 95 | I have the following code:
```
#include <iostream>
int main()
{
try {
while (true)
int* ptr = new int[10000000L];
} catch (const std::bad_alloc& e) {
std::cout << e.what();
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
```
The main problem is that the `std::bad_all... | C++ How to stop over-allocating in heap? | CC BY-SA 4.0 | null | 2023-03-02T15:41:48.350 | 2023-03-02T16:08:38.190 | 2023-03-02T16:02:24.580 | 21,320,139 | 21,320,139 | [
"c++",
"try-catch",
"dynamic-memory-allocation",
"bad-alloc"
] |
75,617,722 | 2 | null | 75,617,652 | 0 | null | The second works because it is in the same row. The Search returns an array and then it tries to match it up of Numbers and Errors(`#N/A`)
Instead wrap in INDEX/MATCH:
```
=INDEX(SEARCH($C$2:$C$3,A1),MATCH(TRUE,ISNUMBER(SEARCH($C$2:$C$3,A1)),0))
```
With 2016, you may need to confirm the formula with Ctrl-Shift-Enter ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:43:29.493 | 2023-03-02T15:43:29.493 | null | null | 4,851,590 | null |
75,617,718 | 1 | null | null | 0 | 13 | I am trying to read data from Firebase with VueFire, although my website crashes until i change the window size?
```
<template>
<q-page class="bg-liG">
<pre>{{ HatchOpen }}</pre>
</q-page>
</template>
<script setup>
import { ref } from "vue";
import { db } from "src/boot/firebase";
import { useDatabaseObject }... | Unsuccesful reading of data from Firebase with VueFire | CC BY-SA 4.0 | null | 2023-03-02T15:43:13.520 | 2023-03-02T15:43:13.520 | null | null | 20,361,943 | [
"javascript",
"firebase",
"vue.js",
"quasar-framework",
"vuefire"
] |
75,617,720 | 1 | null | null | 0 | 31 | I am pulling data from a public api which I do not control.
One object contains a property `"space":40110198681182961664`. This property is too large for an ulong.
The correct value type would be `BigInteger`. And here comes the issue.
System.Text.Json can only serialize BigIntegers to and from string, eg: `"space":"40... | BigInteger with system.text.json | CC BY-SA 4.0 | null | 2023-03-02T15:43:26.207 | 2023-03-02T16:08:47.973 | null | null | 8,695,110 | [
"c#",
"json",
"biginteger",
"system.text.json"
] |
75,617,716 | 1 | null | null | 0 | 14 | I want to detect camera position after user stops moving on map.
I've used `OnCameraIdleListener` for almost 5 years but suddenly its not working. Was something changed in GoogleMaps which blocked this listener or is there any other alternative to this?
This listener is never firing in my map.
Here is my code:
```
abst... | GoogleMaps: Detect when camera movement ended | CC BY-SA 4.0 | null | 2023-03-02T15:42:56.737 | 2023-03-02T18:09:34.137 | null | null | 9,046,350 | [
"android",
"google-maps"
] |
75,617,726 | 2 | null | 74,053,568 | 0 | null | Late to the party but I struggled a bit with this error.
Make sure the following:
on `app/build.gradle` right above this line: `apply from: "../../node_modules/react-native/react.gradle"` add:
```
project.ext.react = [
enableHermes: true,
bundleInDebug: true <--- make sure this is set to true
]
// also... | null | CC BY-SA 4.0 | null | 2023-03-02T15:43:51.940 | 2023-03-02T15:43:51.940 | null | null | 2,195,000 | null |
75,617,724 | 2 | null | 75,617,659 | 0 | null | The output of the blobFromImage() function in OpenCV's DNN module is a multi-dimensional array or a "blob". The shape of the blob depends on the parameters passed to the function. It is possible that the blob shape is different in Python and C++ because of the differences in the OpenCV versions or the parameters passed... | null | CC BY-SA 4.0 | null | 2023-03-02T15:43:44.980 | 2023-03-02T15:43:44.980 | null | null | 21,217,446 | null |
75,617,728 | 1 | null | null | -1 | 5 | I can't install flutter due to unhandled exception.
I tried but it shows unable to create dart snapshot for flutter tool.
| how can solve unhandled exception occurs in terminal while flutter doctor command running | CC BY-SA 4.0 | null | 2023-03-02T15:44:05.803 | 2023-03-02T15:44:05.803 | null | null | 21,285,786 | [
"android",
"flutter",
"mobile-development",
"unhandled-exception"
] |
75,617,729 | 1 | 75,618,332 | null | 0 | 59 | I'm getting a [warning](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/nullable-warnings?f1url=%3FappId%3Droslyn%26k%3Dk(CS8629)#possible-null-assigned-to-a-nonnullable-reference) of `Nullable value type may be null` in a lambda but the previous statement was `.Where(o => o.HasValu... | Avoid "Nullable value type may be null" warning | CC BY-SA 4.0 | null | 2023-03-02T15:44:09.077 | 2023-03-02T16:35:25.597 | 2023-03-02T16:12:30.350 | 61,989 | 726,127 | [
"c#",
"visual-studio"
] |
75,617,731 | 2 | null | 75,617,708 | 0 | null | ```
sudo apt-get purge "php7.2*"
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:44:18.237 | 2023-03-02T15:44:18.237 | null | null | 1,067,003 | null |
75,617,721 | 2 | null | 75,616,635 | 1 | null | You can concat all the desired columns to feed them to `LabelEncoder`:
```
malts = pd.concat([x['Malt'] for x in df["fermentables"]])
le_ferm = preprocessing.LabelEncoder()
le_ferm.fit(malts)
print(le_ferm.classes_)
```
Output (for the first 80 rows):
```
['American - Black Malt' 'American - Caramel / Crystal 10L'
'A... | null | CC BY-SA 4.0 | null | 2023-03-02T15:43:26.837 | 2023-03-03T07:12:03.173 | 2023-03-03T07:12:03.173 | 13,525,512 | 13,525,512 | null |
75,617,730 | 2 | null | 75,617,345 | 0 | null | Generate a color matrix `cols` containing your distribution area interactions with the same dimensions as your data matrices, then use these for plotting.
#### Toy data
```
set.seed(42)
cols <- matrix(colors()[sample(600, 20)], nrow=5)
dd <- matrix(sample(20), nrow=5)
de <- matrix(sample(20), nrow=5)
```
```
plot(d... | null | CC BY-SA 4.0 | null | 2023-03-02T15:44:15.030 | 2023-03-02T15:44:15.030 | null | null | 9,462,095 | null |
75,617,732 | 2 | null | 75,617,487 | 0 | null | You can use `fromMemory`, then `decryptPdf` or `decryptPdfOwner`, then `toMemory` from [https://www.npmjs.com/package/coherentpdf](https://www.npmjs.com/package/coherentpdf)
It's about 1.3Mb of client-side JS, or less if served gzipped.
Equally, the same library can do it on the server side, if your server code is in J... | null | CC BY-SA 4.0 | null | 2023-03-02T15:44:22.077 | 2023-03-02T15:44:22.077 | null | null | 1,387,666 | null |
75,617,736 | 2 | null | 75,615,593 | 0 | null | ```
@Html.EditorFor(x => x.Articles[i].NumeroSerie, new {@class = "form-control"})
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:44:32.030 | 2023-03-02T15:44:32.030 | null | null | 6,550,017 | null |
75,617,723 | 1 | null | null | 0 | 28 | I'm trying to subtract these two selects (two counts - the total unique phone numbers):
```
select
count(distinct phnumber) as UniquePHNUMBERS_TOTAL
from
(select
month(c.callinfodate) as bMONTH,
year(c.callinfodate) as bYEAR,
c.phnumber,
count(distinct c.idofthecallinfo) ... | I want to subtract values from two SQL selects | CC BY-SA 4.0 | null | 2023-03-02T15:43:42.137 | 2023-03-02T15:56:02.163 | 2023-03-02T15:48:08.823 | 13,302 | 11,056,070 | [
"sql"
] |
75,617,727 | 1 | null | null | 0 | 27 | I want to run:
```
(venv) ubuntu@ip-172-31-44-136:~/easy_django_repo$ python manage.py makemigrations
```
And got this error:
```
/home/ubuntu/venv/lib/python3.10/site-packages/django/core/management/commands/makemigrations.py:143: RuntimeWarning: Got an error checking a consistent migration history performed for data... | I want to run "python manage.py makemigrations ". Got error "password authentication failed""No changes detected" | CC BY-SA 4.0 | null | 2023-03-02T15:44:02.647 | 2023-03-02T16:04:44.350 | null | null | 15,906,903 | [
"python",
"django",
"postgresql",
"ubuntu",
"amazon-ec2"
] |
75,617,735 | 2 | null | 75,612,235 | 0 | null | I have made few tests.
On my Jira instance I can download SVG in attachment list view and in preview popup.
Interestingly SVG does not work when added to description.
[](https://i.stack.imgur.com/fXx1z.png)
Also I have tested if SVG attachment can be downloaded by API.
I have used [External Share for Jira](https://mark... | null | CC BY-SA 4.0 | null | 2023-03-02T15:44:29.667 | 2023-03-02T15:44:29.667 | null | null | 2,915,087 | null |
75,617,737 | 1 | null | null | 0 | 8 | I am using a static docker that checks the codes of a project. ( See [https://github.com/Ericsson/codechecker/blob/master/docs/usage.md](https://github.com/Ericsson/codechecker/blob/master/docs/usage.md) for more details).
I got a C++ Project that I needed to analyse. I built the Project on eclipse and the rebuilt it u... | How can I solve the error that I get on ubuntu Terminal: cppcheck: error: unrecognized command line option: "--std=c++0x"? | CC BY-SA 4.0 | null | 2023-03-02T15:44:40.193 | 2023-03-02T15:44:40.193 | null | null | 21,320,148 | [
"gcc",
"g++",
"static-methods",
"ubuntu-20.04",
"cppcheck"
] |
75,617,712 | 1 | null | null | 0 | 13 | Im wanting to make an PyTorch Stock Predictor with LSTM
I need some help with an Error and i tried to modify some Things in the forward function but it still gives me the same error
But as Im almost at the end I get an weird error:
`RuntimeError: For unbatched 2-D input, hx and cx should also be 2-D but got (3-D, 3-D) ... | Pytorch error "RuntimeError: For unbatched 2-D input, hx and cx should also be 2-D but got (3-D, 3-D) tensors" | CC BY-SA 4.0 | null | 2023-03-02T15:42:35.527 | 2023-03-02T15:42:35.527 | null | null | 13,551,561 | [
"pytorch",
"lstm",
"stock"
] |
75,617,738 | 2 | null | 75,616,501 | 0 | null | Generally, I'd advice you to not do stuff differently in the development environment than in production, because bugs there tend to go unnoticed, but if you don't see any other way around it, I guess you can overwrite the default principal factory with some own implementation like this:
```
public class PrincipalFactor... | null | CC BY-SA 4.0 | null | 2023-03-02T15:44:50.547 | 2023-03-02T16:10:01.910 | 2023-03-02T16:10:01.910 | 21,305,815 | 21,305,815 | null |
75,617,710 | 2 | null | 75,612,374 | 1 | null | > I'm adding the text word by word is so that certain words will be replaced by images.
1. Instead of using a panel of JLabels, you can use a JTextPane. You can use the setIcon(...) method to insert images. The benefit of using a JTextPane is that it will automatically wrap the text for you based on the width of the t... | null | CC BY-SA 4.0 | null | 2023-03-02T15:42:16.780 | 2023-03-02T15:47:46.723 | 2023-03-02T15:47:46.723 | 131,872 | 131,872 | null |
75,617,742 | 1 | 75,618,349 | null | 1 | 30 | I would like to have the `output$plot` disappear once `input$type` is switched. In the reprex below, it currently only changes the title of the plot, which is misleading. How can I make the plot disappear?
```
library(shiny)
ui <- fluidPage(
selectInput("type", "type", c("Normal", "Uniform")),
actionButton("go", "g... | How can I make a plot disappear once an input is switched? | CC BY-SA 4.0 | null | 2023-03-02T15:45:23.967 | 2023-03-02T21:33:39.767 | null | null | 12,393,826 | [
"shiny"
] |
75,617,747 | 2 | null | 75,617,321 | 2 | null | Yes you can by initializing the second variable in the `initState()` Function in `statefulWidget` class .
| null | CC BY-SA 4.0 | null | 2023-03-02T15:45:41.400 | 2023-03-02T15:45:41.400 | null | null | 14,860,256 | null |
75,617,740 | 1 | 75,617,784 | null | 2 | 39 | ```
{% for club in clubs %}
{% if {club.c_type} == 'Tech' %}
SOME CODE
{% endif %}
{% endfor %}
```
```
def clubs(request):
clubs_data = Clubs.objects.all()
return render(request, 'clubs.html', {'clubs': clubs_data})
CLUBS_TYPE = {('T', 'Tech'), ('NT', 'Non-Tech')}
class Clubs(models.Model):
club_id =... | {% if {club.c_type} == 'Tech' %} is giving error Code is working perfectly without it. Want to filter data on basis or Tech and Non Tech in same Page | CC BY-SA 4.0 | null | 2023-03-02T15:45:13.327 | 2023-03-03T00:59:25.690 | 2023-03-03T00:59:25.690 | 20,121,320 | 21,319,992 | [
"python",
"django",
"backend"
] |
75,617,741 | 2 | null | 75,616,607 | 0 | null | !! !!
It was pushing null because there was a conflict between the type in the action parameter and the type in the AJAX part and I sent extra null ids from the unselected dropdowns. I filtered out the empty ids and fixed the parsing.
Here is my edited code
```
@section Scripts{
<script>
$(document).ready(... | null | CC BY-SA 4.0 | null | 2023-03-02T15:45:22.353 | 2023-03-02T15:45:22.353 | null | null | 14,982,006 | null |
75,617,748 | 2 | null | 45,831,911 | 0 | null | A very basic solution
```
function createEventEmitter() {
const events = {}
return {
on: (name, listener) => {
const listeners = events.hasOwnProperty(name)
? events[name]
: (events[name] = [])
listeners.push(listener)
},
emit: (nam... | null | CC BY-SA 4.0 | null | 2023-03-02T15:45:50.020 | 2023-03-02T17:07:54.463 | 2023-03-02T17:07:54.463 | 1,469,219 | 1,469,219 | null |
75,617,749 | 1 | null | null | 0 | 8 | Below I have some code that returns the results that I need, but because the query is part of a stored procedure it would be much easier if I could define the steps and execute once instead of having to execute the CREAT SESSION MEMBER statement multiple times. Or perhaps the equivalent of GO in SQL SERVER.Let me know ... | MDX query: Turn Created Members into a single execution | CC BY-SA 4.0 | null | 2023-03-02T15:46:03.127 | 2023-03-02T15:46:03.127 | null | null | 19,462,139 | [
"sql-server",
"ssas",
"mdx",
"cube",
"olap-cube"
] |
75,617,753 | 1 | null | null | 1 | 37 | Sorry for a question that will seam very trivial.
So I have a 2D array (shape = (2, 9) which looks like this:
```
a = np.array([[ 1, 1, 1, 40, 40, 40, 80, 80, 80],
[ 0, 0, 1, 0, 1, 1, 0, 1, 1]])
```
That I would like to turn into that 3D array (shape = (3, 2, 3)):
```
array([[[ 1, 1, 1],
... | Reshape in a specific way python | CC BY-SA 4.0 | null | 2023-03-02T15:46:18.793 | 2023-03-02T16:36:23.223 | 2023-03-02T15:50:44.773 | 16,343,464 | 18,170,469 | [
"python",
"numpy"
] |
75,617,734 | 2 | null | 75,595,162 | 0 | null | ```
<?php
include './PHP/serverconn.php';
include './PHP/login.php';
include 'InventoryPages\testingautoupdate.php';
$itemid = '';
$sql = "SELECT id, ItemName, ItemBarcode, CompanyName, `Location`, DetailsOnItem, barcodeimg, count, combindedBarcode, modelnumber FROM items";
$result = $conn->query($sql);
if ($result->n... | null | CC BY-SA 4.0 | null | 2023-03-02T15:44:27.163 | 2023-03-02T15:44:27.163 | null | null | 21,259,137 | null |
75,617,755 | 1 | null | null | 0 | 24 | I'm trying to capture a tooltip hover message but don't have a title tag nor any attribute I can find to identify the text. It seems to be a button tag that has its attributes change when I hover over it to add the attribute "is-hover". But I don't know how to get the text that appears on the screen when that attribute... | Selenium how to get tooltip hover message when no attribute available | CC BY-SA 4.0 | null | 2023-03-02T15:46:25.207 | 2023-03-02T21:59:04.923 | 2023-03-02T17:03:09.847 | 8,370,915 | 8,408,147 | [
"java",
"selenium-webdriver",
"browser-automation"
] |
75,617,757 | 2 | null | 67,710,281 | 0 | null | Just put `import './style.css'` in index.js file.
| null | CC BY-SA 4.0 | null | 2023-03-02T15:46:36.607 | 2023-03-02T15:46:36.607 | null | null | 7,831,541 | null |
75,617,739 | 1 | null | null | 0 | 24 | We are using postgresql 13.6 master-slave configuration. Whenever I executed pg_basebackup command to get the files master to start replication, connection drops. I' ve been searching this error but still no clue why this happens. And logs does not provide any clue.
Can somebody help on this?
Pg_basebackup command
`pg_... | pg_basebackup: error: could not read COPY data: server closed the connection unexpectedly | CC BY-SA 4.0 | null | 2023-03-02T15:44:55.803 | 2023-03-02T20:10:16.873 | 2023-03-02T20:10:16.873 | 6,729,208 | 6,729,208 | [
"database",
"postgresql",
"centos7"
] |
75,617,756 | 2 | null | 75,611,912 | 1 | null |
1. sorry about table name, I am really tired to write CREATE_TABLE/INSERT, I spend more time on CREATE_TABLE/INSERT than on the real query. I don't understand WHY people who ask questions make people WHO answer questions to do really stupid work.
2. you don't have day=2 in the input data. It's really confusing.
```
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:28.710 | 2023-03-02T15:46:28.710 | null | null | 11,644,308 | null |
75,617,752 | 2 | null | 75,617,639 | 1 | null | I'd use [reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce) were you first use `filter` on `costBreakdowns` to get an array of those where `canceled` is `false`.
Then if we;ve found anything (`if (withoutFalse.length)`) overwrite `costBreakdowns` with the result of ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:10.177 | 2023-03-02T15:46:10.177 | null | null | 5,625,547 | null |
75,617,754 | 1 | 75,618,113 | null | 0 | 9 | I'm trying to convert data from a sav (SPSS) data file to a format suitable for plotting by HH::likert, and I can't get the proper invocation to do this.
To replicate the sav format, create a dataframe giving the results of a likert question on rating particular cheeses from 1 (strongly like) to 5 (strongly dislike) as... | R: Convert sav (SPSS) data to a format suitable for HH::likert | CC BY-SA 4.0 | null | 2023-03-02T15:46:22.947 | 2023-03-02T16:16:34.913 | null | null | 462,314 | [
"r",
"tidyverse",
"likert"
] |
75,617,758 | 2 | null | 51,239,147 | 0 | null | pass type: :script, if you want to execute script on the browser.
In case change your form tag like this:
```
pass type: :script, if you want to execute script on the browser.
In case change your form tag like this:
<div class="modal-dialog">
<div class="modal-content">
<%= form_for @department, remote: true, data... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:41.690 | 2023-03-02T15:46:41.690 | null | null | 6,545,571 | null |
75,617,761 | 2 | null | 72,423,925 | 1 | null | The problem is that the `.reloc` section needs to be `readable`; change it to:
```
section '.reloc' fixups data readable discardable
```
You may also need to add a dummy entry after it:
```
if $=$$
dd 0,8 ; if there are no fixups, generate dummy entry
end if
```
Or use this instead:
```
data fixups
end data
```
... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:48.687 | 2023-03-03T22:09:26.773 | 2023-03-03T22:09:26.773 | 4,454,665 | 4,454,665 | null |
75,617,759 | 1 | 75,617,984 | null | 0 | 23 | I want to export data from Intellij as INSERT statements. And then import them to oracle. I keep getting `ORA-01843: not a valid month` error. How can I get it to work? My .sql file is over 600 MB large so I can't just manually correct all the statements.
Those are the fields that are problematic:
```
"CREATED" TIMESTA... | How to make Intellij export SQL inserts in Oracle friendly format | CC BY-SA 4.0 | null | 2023-03-02T15:46:44.010 | 2023-03-02T18:17:43.013 | null | null | 18,142,927 | [
"oracle",
"intellij-idea",
"oracle-sqldeveloper"
] |
75,617,764 | 2 | null | 75,617,391 | 0 | null | The [split()](https://www.w3schools.com/python/ref_string_split.asp) method splits a string into a list based on whitespace.
This will not get rid of punctuation.
To get rid of punctuation you can use string library's translate [translate](https://www.tutorialspoint.com/python3/string_translate.htm) function:
```
impor... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:55.390 | 2023-03-03T12:23:22.117 | 2023-03-03T12:23:22.117 | 841,830 | 18,505,884 | null |
75,617,763 | 2 | null | 75,617,502 | 1 | null | The `zip` / `zip_longest` approaches suggested by [Samwise](/a/75617607/843953) and [Jorge](/a/75617798/843953) are good, but you could also do this by simply iterating over `original_list` and handling each element as you encounter it.
First, initialize `nested_list` as a list containing an empty list.
```
nested_list... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:54.193 | 2023-03-02T15:53:32.353 | 2023-03-02T15:53:32.353 | 843,953 | 843,953 | null |
75,617,766 | 1 | null | null | -1 | 7 | I'm reading up on decision trees and I ended up hearing about Classification and Regression Trees by Breiman (CART). ONe of the characteristics of CART as per the [Geeksforgeeks page](https://www.stackoverflow.com/) is that it can handle both Classification and Regression tasks. What does this mean in practice? Does it... | CART can do both classification and regression | CC BY-SA 4.0 | null | 2023-03-02T15:46:56.933 | 2023-03-02T15:46:56.933 | null | null | 17,697,312 | [
"machine-learning",
"regression",
"classification",
"decision-tree"
] |
75,617,769 | 2 | null | 65,364,001 | 0 | null | try `brew install cocoapods` if you use brew. then `brew link --overwrite cocoapods`
| null | CC BY-SA 4.0 | null | 2023-03-02T15:47:15.253 | 2023-03-02T15:47:15.253 | null | null | 8,850,042 | null |
75,617,762 | 2 | null | 75,616,747 | 0 | null | You connected `event` slot incorrectly, `self.event(id)` is a function call, which leads to error since `self.event(id)` returns `None` so program tries to do `self.clocks[id].timeout.connect(None)`.
To bind value to a function you need to either use lambda with optional parameters or `functools.partial`:
```
self.cloc... | null | CC BY-SA 4.0 | null | 2023-03-02T15:46:51.487 | 2023-03-02T16:09:13.947 | 2023-03-02T16:09:13.947 | 2,079,189 | 2,079,189 | null |
75,617,767 | 1 | null | null | 0 | 10 | I know `window.opener.href` is blocked due to security purpose. However, they are the one trying to access my website, how do I identify them?
Scenario: From Google Docs (origin `https://xxxxx.googleusercontent.com/userCodeAppPanel`), I can open a tab/window to `https://www.example.com/feature`. I want to communicate b... | How to identify cross-origin opener so my website only serves openers from certain origins? | CC BY-SA 4.0 | null | 2023-03-02T15:47:03.957 | 2023-03-03T08:39:32.050 | null | null | 653,457 | [
"javascript",
"cross-domain",
"referer",
"window.opener"
] |
75,617,765 | 1 | null | null | 1 | 14 | This is the error I'm getting on the website that I host:
```
Uncaught SyntaxError: Cannot use import statement outside a module
```
I've spent the last few hours scanning the internet and the stack with so many questions like this but none solved my issue.
### JavaScipt Code:
```
import { initializeApp } from "fir... | Firebase hosting - storage - Cannot use import statement outside a module | CC BY-SA 4.0 | null | 2023-03-02T15:46:55.867 | 2023-03-02T16:57:50.257 | 2023-03-02T16:57:50.257 | 20,972,936 | 20,972,936 | [
"javascript",
"firebase",
"hosting"
] |
75,617,772 | 2 | null | 64,625,742 | 0 | null | I've got this Error when I wanted to set a property as ListProperty to change my UI color. when I sat a default variable for it, the error disappeared. for examle:
```
color = ListProperty([0, 0, 0, 1])
```
| null | CC BY-SA 4.0 | null | 2023-03-02T15:47:34.887 | 2023-03-02T15:47:34.887 | null | null | 5,749,455 | null |
75,617,773 | 1 | null | null | -1 | 10 | So I am looking for building a Private Eth 2.0 Blockchain network (i.e., PoS).
But I find that there are PoA and PoW guidelines but no PoS.
As far as I know, it is not easy to build an Eth 2.0 node since Eth 2.0 needs Eth 1.0.
It is nice that you can show me some steps.
Thanks!!!
I am thinking that maybe we can use tes... | How to build a Private Eth 2.0 Blockchain network (i.e., PoS) | CC BY-SA 4.0 | null | 2023-03-02T15:47:49.947 | 2023-03-02T15:48:22.343 | 2023-03-02T15:48:22.343 | 21,320,209 | 21,320,209 | [
"ethereum",
"blockchain"
] |
75,617,768 | 1 | null | null | 1 | 13 | I am trying to generate a report from an R script using Rmarkdown::Render. If there is an error in my script, I would like the script to stop, and I would like to render the report up to that point, including the error. So far, I have this:
```
knit_hooks$set(error = function(x, options) {
knit_exit(); x
})
stop("t... | Generate HTML report based on R script, stop execution of script when error occurs, generate the report upto and including that error? | CC BY-SA 4.0 | null | 2023-03-02T15:47:11.703 | 2023-03-02T18:21:24.817 | null | null | 21,319,789 | [
"r",
"r-markdown",
"knitr"
] |
75,617,745 | 1 | 75,619,266 | null | 1 | 25 | seeking some expertise/guidance on creating new columns in a data frame based on different conditions of one column.
My data frame is pretty huge, but I've subsetted it for easier reference. It's a feedback from animal lovers on their cost.
| Feedback | Cost | pig |
| -------- | ---- | --- |
| cat, dog, rabbit | 90 ... | R - Create new columns based on different conditions of one column | CC BY-SA 4.0 | null | 2023-03-02T15:45:27.440 | 2023-03-02T18:04:03.713 | null | null | 17,888,970 | [
"r",
"dataframe",
"dplyr",
"tidyverse",
"data-manipulation"
] |
75,617,774 | 1 | null | null | 0 | 19 | ```
<video controls>
<source src={bigCirlceVideo} type="video/mp4" />
</video>
```
video is not playing it is giving me this error.
Failed to compile.
src\containers\home\intro\index.jsx -frontend\src\containers\... | Media elements such as <audio> and <video> must have a <track> for captions jsx-a11y/media-has-caption | CC BY-SA 4.0 | null | 2023-03-02T15:47:55.243 | 2023-03-02T15:47:55.243 | null | null | 16,946,546 | [
"html",
"video",
"video-streaming",
"html5-video",
"html5-audio"
] |
75,617,770 | 1 | null | null | -1 | 13 | I am using a code written in C++ and could produce `.dll` file. Once I tried to run, I faced error which says `Error using calllib Library was not found`
the error is related to what as I have tried to follow the documentation.
Is there anything wrong with my environment PATH? I did check available sources like [this](... | "Error using calllib Library was not found" in matlab | CC BY-SA 4.0 | null | 2023-03-02T15:47:18.583 | 2023-03-02T16:14:38.240 | 2023-03-02T16:14:38.240 | 21,026,806 | 21,026,806 | [
"c++",
"matlab"
] |
75,617,771 | 2 | null | 75,615,835 | 1 | null | ```
dt <- structure(list(age = c(23, 25, 60, 12), sex = c(0, 1, 0, 1),
bmi = c(25, 30, 23, 24), disease = c(0, 1, 0, 1)), class = c("tbl_df",
"tbl", "data.frame"), row.names = c(NA, -4L))
library(data.table)
setDT(dt) # make ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:47:19.467 | 2023-03-02T15:53:42.603 | 2023-03-02T15:53:42.603 | 10,415,749 | 10,415,749 | null |
75,617,779 | 1 | null | null | -1 | 29 | I have a job maintaining a WordPress site for a client. Many of the pages were built with the Divi builder and work as expected. There is one page of the site that says it's a Divi page, but when you enter the Divi editor there is no bottom tool bar the page doesn't show Divi modules. The page, in fact, looks like the ... | Confusing WordPress page | CC BY-SA 4.0 | null | 2023-03-02T15:48:28.710 | 2023-03-04T13:54:30.063 | 2023-03-04T13:54:30.063 | 9,430,133 | 16,334,676 | [
"wordpress",
"iframe",
"divi"
] |
75,617,776 | 1 | null | null | 1 | 22 | I'm trying to sort differences between values grouped by dates and categories in a Pandas DataFrame. At the end, what matters is the name of the categories with the lowest and highest increases between the two dates, and the corresponding increases.
I think my code works, but it looks over complicated. I would like to ... | Best practice with Pandas to calculate differences between dates according to categories | CC BY-SA 4.0 | null | 2023-03-02T15:47:58.563 | 2023-03-02T16:22:43.240 | 2023-03-02T16:22:43.240 | 12,833,166 | 1,208,142 | [
"python",
"pandas",
"dataframe"
] |
75,617,778 | 2 | null | 75,616,433 | 0 | null | As I understand, you are trying to run:
```
npm run build export C:\DataFactories\DevDataFactory /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testResourceGroup/providers/Microsoft.DataFactory/factories/DevDataFactory ArmTemplateOutput
```
In this case, your ADF folder has to contain ADF sources. ... | null | CC BY-SA 4.0 | null | 2023-03-02T15:48:27.677 | 2023-03-02T17:30:12.457 | 2023-03-02T17:30:12.457 | 8,235,971 | 8,235,971 | null |