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,622,184 | 2 | null | 75,622,163 | -1 | null | I believe the break statement is placed outside of the if statement that checks if the user wants to play again. This means that the loop will always break after the first iteration, regardless of whether the player wants to continue playing or not.
```
print(" ")
playAgain = input("Do you want to play again? (y/n)\n")... | null | CC BY-SA 4.0 | null | 2023-03-03T00:40:33.803 | 2023-03-03T00:40:33.803 | null | null | 17,656,839 | null |
75,622,175 | 2 | null | 75,558,174 | 0 | null |
#### TLDR: Check this working example only extending interfaces.
---
No special magic needed, this can be done only by declaring and extending the correct interfaces.
This answer works because `myMethod` uses `{ controls: IBaseForm }` instead of `FormGroup`, the method declaration requires only to fulfill the `id... | null | CC BY-SA 4.0 | null | 2023-03-03T00:39:34.753 | 2023-03-03T16:42:06.257 | 2023-03-03T16:42:06.257 | 1,657,465 | 1,657,465 | null |
75,622,183 | 1 | null | null | 0 | 22 | how can I change a boolean value?
I do this: `await Model.update({[reply.match[1]: reply.match[2] == 'off'});`
`reply.match[2] - off`
But it stopped working for me. This is ridiculous. What can I do?
error not
because true = false and vice versa. But it stopped working
`regular: /^status:(member|admin):(off|on):(\d+)$... | update sequelize boolean Value | CC BY-SA 4.0 | null | 2023-03-03T00:40:27.610 | 2023-03-03T01:01:04.873 | 2023-03-03T00:54:18.317 | 21,322,647 | 21,322,647 | [
"javascript",
"typescript",
"sequelize.js"
] |
75,622,173 | 1 | null | null | 0 | 15 | I can display an image to the Label Widget without difficulty, however when I try to change the label widget image by using the '<>' bind to get a different image path string (which is then attached to a new PhotoImage class using the Retrieve_Image function), before being returned to the Label Widget. The program inst... | Why doesn't my '<<TreviewSelect>>' bind change the PhotoImage being displayed in the Tkinter Window when it is called? | CC BY-SA 4.0 | null | 2023-03-03T00:39:12.857 | 2023-03-03T00:58:06.163 | null | null | 21,322,599 | [
"python",
"tkinter",
"treeview",
"bind",
"tkinter-photoimage"
] |
75,622,191 | 2 | null | 75,622,141 | 1 | null | You can't concatenate number and text so convert the testid to TEXT before concatenating it
```
" & Number.ToText(TestID,"D") & "
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:41:25.577 | 2023-03-03T00:41:25.577 | null | null | 5,193,536 | null |
75,622,185 | 1 | null | null | -1 | 12 | I am using the Revit Python Shell to call a function shown in the Revit API docs as NewPointOnEdge. This function per the API docs takes two arguments: a Reference object, and a PointLocationOnCurve object. However, in the Revit Python Shell, a third argument is required: self: Application.
[Screen Shot From RPS](https... | How can I call the Revit API function NewPointOnEdge when it wants Self as an argument? | CC BY-SA 4.0 | null | 2023-03-03T00:40:41.443 | 2023-03-03T00:43:46.360 | 2023-03-03T00:43:46.360 | 21,322,620 | 21,322,620 | [
"python",
"revit-api"
] |
75,622,181 | 1 | null | null | 0 | 9 | Every month or so for the last several months, xampp MySQL fails to startup.
As most solutions I've found recommend, I've been replacing my xampp/mysql/data folder with xampp/mysql/backup. This works as expected and xampp starts normally, but the backup folder does not have my databases and tables in it.
I've tried cop... | xampp MySQL startup error (not duplicate) | CC BY-SA 4.0 | null | 2023-03-03T00:40:04.083 | 2023-03-03T00:40:04.083 | null | null | 17,171,262 | [
"mysql",
"xampp"
] |
75,622,187 | 2 | null | 75,621,711 | 1 | null | ```
import pandas as pd
from pathlib import Path
path = "/sample/"
df = pd.read_csv(f'{path}labels.txt',
header=None,
delimiter=' ',
encoding="utf8",
error_bad_lines=False,
engine='python'
)
df.rename(columns={0: "... | null | CC BY-SA 4.0 | null | 2023-03-03T00:40:48.460 | 2023-03-03T00:40:48.460 | null | null | 21,030,188 | null |
75,622,195 | 1 | null | null | -4 | 16 | I couldn't install nodemon globally and including the path on environment variables didn't work either
Noting happend because it kept on installing nodemon wrong
| nodemon: the term 'nodemon' is not recognized as a name of a cmdlet, function, script file, or executable program. check the spelling of the name, | CC BY-SA 4.0 | null | 2023-03-03T00:42:35.363 | 2023-03-03T00:44:50.513 | null | null | 21,322,665 | [
"javascript",
"node.js",
"visual-studio-code",
"nodemon"
] |
75,622,186 | 2 | null | 75,621,880 | 2 | null | You're almost there. You just need to change your true statement in `ifelse` to `NA` instead of `is.na(value)`. `is.na(value)` tests whether an object is `NA` and returns either `TRUE` or `FALSE`. In your case you want to overwrite the value to `NA`. `case_when()` is the `dplyr::` way of doing things, but `ifelse(... | null | CC BY-SA 4.0 | null | 2023-03-03T00:40:43.980 | 2023-03-03T01:06:31.893 | 2023-03-03T01:06:31.893 | 14,579,118 | 14,579,118 | null |
75,622,198 | 1 | null | null | -2 | 45 | Let's imagine I have a 2d array (which basically is array of arrays). I want to have a reference to internal arrays to sort them directly or use them as arguments to some function.
type[,] array = new type[n,n]
I cannot refer to inner array with array[index] because compiler expects me to input 2 indexes.
| How to refer to array which is inside another array? | CC BY-SA 4.0 | null | 2023-03-03T00:43:00.377 | 2023-03-03T01:41:47.230 | null | null | 21,113,511 | [
"c#"
] |
75,622,200 | 2 | null | 63,795,584 | 0 | null | the text is encoded in base64, so if you want to view the data, just decode it using a base64 decoder (`https://www.base64decode.org/`). When I say decode the "data" I mean the text that is in between `<data></data>`
| null | CC BY-SA 4.0 | null | 2023-03-03T00:43:05.780 | 2023-03-03T00:43:05.780 | null | null | 16,739,318 | null |
75,622,193 | 2 | null | 75,519,027 | 0 | null | Sounds like you are doing TLS termination with NGINX and then forwarding the request to Varnish Cache to do caching. This is a typical setup.
Varnish is running a VCL (Varnish Configuration Language) file, specified by the path in it's `-f` parameter. The default for this is `/etc/varnish/default.vcl` If you share this... | null | CC BY-SA 4.0 | null | 2023-03-03T00:41:54.510 | 2023-03-03T00:41:54.510 | null | null | 10,131,324 | null |
75,622,204 | 1 | 75,624,723 | null | 1 | 17 | I want to configure my IDE (PhpStorm) to run Prettier on save, for different file types in different directories, but it only accepts one glob pattern.
I want one pattern that will do the work of both of these patterns:
- `assets/**/*.{js,ts,json,css,scss,sass}`- `**/*.{md,yml}`
I want to reformat `js,ts,json,css,scss,... | Glob pattern for different file types in different directories | CC BY-SA 4.0 | null | 2023-03-03T00:43:33.860 | 2023-03-03T08:26:02.413 | 2023-03-03T03:07:13.877 | 877,574 | 877,574 | [
"phpstorm",
"glob",
"prettier"
] |
75,622,203 | 1 | null | null | 0 | 28 | I have a python discord bot that does buttons on embeds. The program loops every hour to re-initialise the buttons back onto the embed because I found just doing it once still times-out.
```
import numpy as np
import discord
from discord.ext import tasks, commands
import sqlite3
import random
import datetime
import Gl... | Discord py buttons time out and when re-initialised it still times out after a couple iterations | CC BY-SA 4.0 | null | 2023-03-03T00:43:19.407 | 2023-03-04T08:24:11.460 | null | null | 16,728,463 | [
"python",
"discord",
"discord.py",
"timeout"
] |
75,622,194 | 2 | null | 75,621,378 | 1 | null | The other answers here are good. Essentially, you can't dereference NULL. I want to also give some intuition for this.
Recall that in C, strings are just sequences of bytes (representing ASCII characters) in memory. We can treat any place in memory (which itself is just one long sequence of bytes) as a string, and we w... | null | CC BY-SA 4.0 | null | 2023-03-03T00:42:10.057 | 2023-03-04T04:58:03.597 | 2023-03-04T04:58:03.597 | 8,409,679 | 8,409,679 | null |
75,622,202 | 2 | null | 75,621,554 | 3 | null | This is a very strange thing to do, because the `Application` class is supposed to manage the application lifecycle (it has `start()`, `stop()`, and `init()` methods for this purpose). It's not supposed to be a repository for your application data.
The reason your button text isn't changing is because the text is bound... | null | CC BY-SA 4.0 | null | 2023-03-03T00:43:17.137 | 2023-03-03T02:10:31.977 | 2023-03-03T02:10:31.977 | 2,189,127 | 2,189,127 | null |
75,622,177 | 1 | null | null | 1 | 15 | I'm facing a structure issue on my project. A brief of what I'm doing:
On every page of my project, I do have a getServerSideProps function running that fetches the user and send it as a prop.
I do also have a UserContext file that fetches the user as well, to be accessed on my components.
The problem is that the user ... | How to access getServerSideProps on context? | CC BY-SA 4.0 | null | 2023-03-03T00:39:46.567 | 2023-03-03T00:44:12.370 | 2023-03-03T00:44:12.370 | 62,576 | 13,265,401 | [
"next.js"
] |
75,622,208 | 2 | null | 7,596,454 | 0 | null | ```
java -version 2>&1 | head -1 | awk -F '_|"' '{print $2}'
```
Output
```
1.8.0
```
Or
```
java -version 2>&1 | head -1 | awk -F '_|"' '{print $2}' | cut -c 1-3
```
Output
```
1.8
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:44:08.217 | 2023-03-03T05:07:13.343 | 2023-03-03T05:07:13.343 | 13,308,127 | 13,308,127 | null |
75,622,206 | 1 | null | null | 0 | 32 | How do I zip up an iterator to some type that implements `IntoIterator` and mutate that type inside of a loop like this ([playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%23%5Bderive(Default%2C%20Debug)%5D%0Astruct%20Data%20%7B%0A%20%20%20%20pub%20values%3A%20%5Bbool%3B%204%5D%2... | Mutating a zipped iterator in Rust | CC BY-SA 4.0 | null | 2023-03-03T00:43:41.170 | 2023-03-03T01:03:48.550 | 2023-03-03T00:55:03.427 | 442,760 | 21,315,846 | [
"rust",
"iterator"
] |
75,622,205 | 2 | null | 75,619,983 | 0 | null | If you have a namespace project you can add an static class as the following
```
public static class Permissions
{
public static class Constracts
{
public const string View = "Permissions.Contracts.View";
public const string Edit = "Permissions.Contracts.Edit";
pu... | null | CC BY-SA 4.0 | null | 2023-03-03T00:43:35.407 | 2023-03-03T00:43:35.407 | null | null | 5,398,934 | null |
75,622,192 | 1 | null | null | 1 | 20 | I have two (web) event tables in BigQuery which are partitioned by a DATE column named `_date`.
One of the tables does not require the partition filter (tableA), the other does (tableB).
When I configure my Great Expectations datasource config I do specify that I want to have batches split by this column. However the o... | How can I force a partition filter to be added to a Great Expectations dataset? | CC BY-SA 4.0 | null | 2023-03-03T00:41:45.247 | 2023-03-03T00:41:45.247 | null | null | 459 | [
"google-bigquery",
"great-expectations"
] |
75,622,207 | 1 | null | null | 0 | 13 | experts,
I got below warning from when I tried to make a executable file with nodejs+express app.
The resulted exe file in windows has an error also.
Please review and give your advice to resolve this.
Warning message in making an exe file :
```
> pkg@5.8.0
> Warning Cannot include file %1 into executable.
The file ... | How can I remove a warning from <pkg> to make a executable file of nodejs+express app? | CC BY-SA 4.0 | null | 2023-03-03T00:43:50.757 | 2023-03-03T00:56:12.450 | 2023-03-03T00:45:45.283 | 740,553 | 17,258,765 | [
"node.js",
"express",
"log4js-node"
] |
75,622,199 | 1 | null | null | 0 | 36 | I'm trying to use the C++ debugger in VS Code. I have created the launch.json file with the configuration but I have the problem that I cannot see the value of the string type variables, nor of the collections. Numeric variables are displayed correctly. I have tried several solutions but they have not worked for me and... | Can't see the value of variables in debug mode with VS Code | CC BY-SA 4.0 | null | 2023-03-03T00:43:02.527 | 2023-03-04T03:20:34.447 | 2023-03-03T01:20:36.053 | 18,303,981 | 18,303,981 | [
"c++",
"visual-studio-code",
"vscode-debugger"
] |
75,622,209 | 2 | null | 75,622,093 | 2 | null | You can use [cpp-insights to have a look](https://cppinsights.io/lnk?code=I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dHlwZV90cmFpdHM+CiAgCiAgCnRlbXBsYXRlIDx0eXBlbmFtZSBUPgppbnQgY29tcGFyZShUJiB4LCBUJiB5KSB7CiAgcmV0dXJuIDE7Cn0KICAKICAKaW50IG1haW4oKSB7CiAgIGNvbXBhcmUoImFiYyIsICJhYmMiKTsgLy8gbm8gY29tcGlsYXRpb24gZXJyb3IKfSAgIC... | null | CC BY-SA 4.0 | null | 2023-03-03T00:44:13.000 | 2023-03-03T00:44:13.000 | null | null | 1,294,207 | null |
75,622,211 | 1 | null | null | 0 | 14 | Long time reader, first time questioner.
I'm a dev in training at a NetSuite company, and I got my first Adv PDF scripting job.
The client wants the header and footer displayed to be displayed on a purchase order that has the item table. But then the document prints barcodes, and when it prints barcodes they want the h... | Hide Header and Footer in PDF once a specific Table is Displayed (Netsuite) | CC BY-SA 4.0 | null | 2023-03-03T00:44:20.400 | 2023-03-03T10:26:47.683 | null | null | 21,322,495 | [
"pdf",
"pdf-generation",
"netsuite",
"freemarker"
] |
75,622,213 | 2 | null | 75,622,195 | 0 | null | npm install -g nodemon --prefix C:\Users<Your Username>
You have to specify the prefix to where you want to install it, so for instance most likely it would under Users in the computer, and then after that you can select your user whatever its called
| null | CC BY-SA 4.0 | null | 2023-03-03T00:44:50.513 | 2023-03-03T00:44:50.513 | null | null | 21,322,665 | null |
75,622,214 | 2 | null | 75,622,174 | 2 | null | You can provide a list of columns you want to filter for:
```
cols = [c for c in df.columns if c.startswith('Brand') or c in ('Id', 'Category', ...)]
df[cols]
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:44:51.527 | 2023-03-03T00:44:51.527 | null | null | 11,971,785 | null |
75,622,217 | 2 | null | 75,621,954 | 2 | null | The [VSCode page](https://code.visualstudio.com/docs/languages/csharp) says there is limited support for .NET Framework with VSCode, and they recommend Visual Studio Community.
> "... many standard C# project types are not recognized
by VS Code. An example of a non-supported project type is an ASP.NET
MVC Application..... | null | CC BY-SA 4.0 | null | 2023-03-03T00:45:06.640 | 2023-03-03T00:54:35.643 | 2023-03-03T00:54:35.643 | 9,541,862 | 9,541,862 | null |
75,622,210 | 2 | null | 75,610,877 | 0 | null | Give your model more degrees of freedom.
```
import matplotlib.pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
import pandas as pd
with open('pulseCheck Data 2023-01-10 11-47-12.txt') as f:
for i, line in enumerate(f):
if line.startswith('# ==='):
break
df = pd.read_cs... | null | CC BY-SA 4.0 | null | 2023-03-03T00:44:14.570 | 2023-03-03T00:44:14.570 | null | null | 313,768 | null |
75,622,188 | 1 | null | null | 0 | 18 | A lot of text, but mostly it is self contained examples. Any help is appreciated.
I have an xarray dataset with `Range` and `time` coordinates, and for each time I want to find the `Range` where the `backscatter` gradient is the minimum. However, I am running into the `ValueError: All-NaN slice encountered`, I think th... | Dropping nan values from an xarray dataset not working, possibly due to smoothing with a rolling mean | CC BY-SA 4.0 | null | 2023-03-03T00:41:12.680 | 2023-03-03T00:41:12.680 | null | null | 14,745,159 | [
"python",
"netcdf",
"python-xarray"
] |
75,622,219 | 2 | null | 75,622,141 | 0 | null | Or do
```
&Text.From(TestID)&
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:45:15.710 | 2023-03-03T00:45:15.710 | null | null | 9,264,230 | null |
75,622,212 | 2 | null | 75,621,999 | 0 | null | You can write something like this:
```
// test objects
const charlie = { serialNo: 1, chipVer: 12, x: NaN, y: undefined };
const lordy = { serialNo: 2, chipVer: 12, x: NaN, y: undefined };
const lordy2 = { serialNo: 3, chipVer: 13, x: NaN, y: undefined };
// compare function
function compareRobots(r1, r2) {
... | null | CC BY-SA 4.0 | null | 2023-03-03T00:44:49.040 | 2023-03-03T00:58:40.950 | 2023-03-03T00:58:40.950 | 20,986,750 | 20,986,750 | null |
75,622,216 | 2 | null | 75,621,420 | 1 | null | Something like this:
```
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim v
'within required range?
If Not Application.Intersect(Target, Me.Range("E:H")) Is Nothing Then
v = Target.Value
Target.Value = IIf(v = "a", vbNullString, "a")
Target.Font.N... | null | CC BY-SA 4.0 | null | 2023-03-03T00:45:04.073 | 2023-03-03T00:45:04.073 | null | null | 478,884 | null |
75,622,221 | 2 | null | 71,009,981 | 0 | null | Your solution 2 has a bug. Why bother mapping null on null?
```
public static IMappingExpression<TSource, TDestination> MapOnlyIfChanged<TSource, TDestination>(this IMappingExpression<TSource, TDestination> map)
{
map.ForAllMembers(source =>
{
source.Condition((sourceObject, destObject, sourceProperty, destPro... | null | CC BY-SA 4.0 | null | 2023-03-03T00:45:23.347 | 2023-03-03T00:45:23.347 | null | null | 3,957,862 | null |
75,622,225 | 2 | null | 22,582,417 | 0 | null | you can use celery with django. django provide elementary asynchronous support which is not complete and face performance issues. Celery could be a good solution for your problem.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:45:59.447 | 2023-03-03T00:45:59.447 | null | null | 3,544,931 | null |
75,622,223 | 2 | null | 75,622,097 | 0 | null | You don't really have to test your configuration class. But if you really want to test it, you should test it by loading the context, but not using the mocking.
```
@SpringBootTest
@Import(RestConfiguration.class)
class RestConfigurationTest {
}
```
This will load your configuration class and test your values.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:45:34.270 | 2023-03-03T00:45:34.270 | null | null | 893,952 | null |
75,622,215 | 2 | null | 75,621,999 | 1 | null | Using [Object.keys()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys) and a [Set()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) to get all unique keys of the two objects, then I simply remove the ones I don't want to compare (`"seri... | null | CC BY-SA 4.0 | null | 2023-03-03T00:44:53.990 | 2023-03-03T00:44:53.990 | null | null | 6,567,275 | null |
75,622,222 | 1 | 75,623,047 | null | 0 | 41 | I have an SQLite model called Inside of this there is a column called that contains a string. For example: 84450.jpg
I would like to be able to find all the values that contain .jpg (which is actually every cell and always will be), and replace it with .png.
So 84450.jpg becomes 84450.png in my database.
I will be us... | Find and replace substring of a string in SQLite database | CC BY-SA 4.0 | null | 2023-03-03T00:45:28.117 | 2023-03-03T03:57:51.563 | null | null | 21,062,187 | [
"ruby-on-rails",
"ruby",
"sqlite"
] |
75,622,229 | 2 | null | 75,621,833 | 0 | null | For your error, it just happens you are using wrong xpath...
Try this:
```
//ol[@class='wt-grid wt-grid--block wt-pl-xs-0 tab-reorder-container']/*[1]
```
I'm sure there are better and shorter versions of this, but that is up to you to figure out!
P.S (even after this step your code doesn't work xd)
| null | CC BY-SA 4.0 | null | 2023-03-03T00:47:20.893 | 2023-03-03T00:47:20.893 | null | null | 20,959,773 | null |
75,622,228 | 1 | null | null | 1 | 14 | In Airflow 2.3.4, I have a task I am intentionally failing and when it fails I want to mark it as a success
in the callback but the below does not work.,
```
def intentional_failure():
raise AirflowException("this is a dummy failure")
def handle_failure(context):
context['task_instance'].state = State.SUCCES... | Mark a task as a success on callback on intentional failure | CC BY-SA 4.0 | null | 2023-03-03T00:46:59.937 | 2023-03-03T01:16:19.957 | null | null | 9,087,739 | [
"python",
"airflow"
] |
75,622,231 | 2 | null | 59,697,195 | 0 | null | Yes, not as fine as you can do in VBA, but in Pycharm you can actually click on the gap between the line number and the code, it will add a red circle there meaning that's as stop point much like VBA, just like pressing the F8 key to advance a line.
To run the code in debug mode on PyCharm, just right click anywhere in... | null | CC BY-SA 4.0 | null | 2023-03-03T00:47:54.953 | 2023-03-03T00:47:54.953 | null | null | 19,589,316 | null |
75,622,227 | 1 | 75,622,834 | null | 0 | 12 | I cannot figure out why on render my mock redux store is empty. The component will render, but it has a conditional useEffect on a selected value from the redux store that I need to test, but the selected value is always empty despite the fact I send it in.
Here is my test:
```
// Mock redux
jest.mock("react-redux", ()... | React testing library: My mocked redux store is empty | CC BY-SA 4.0 | null | 2023-03-03T00:46:36.690 | 2023-03-03T03:13:17.423 | 2023-03-03T03:13:17.423 | 6,463,558 | 15,437,341 | [
"reactjs",
"redux",
"react-hooks",
"react-testing-library",
"redux-toolkit"
] |
75,622,233 | 2 | null | 64,557,697 | 0 | null | I went through most of the suggestions and obviously none were going to work if i had a spelling mistake,
It was a simple missing from , please check your
I hope this helps
| null | CC BY-SA 4.0 | null | 2023-03-03T00:48:14.640 | 2023-03-03T00:48:14.640 | null | null | 1,967,465 | null |
75,622,236 | 2 | null | 75,622,174 | 2 | null | You can try `join` with `filter`
```
out = df[['ID', 'Category']].join(df.filter(regex='^Brand'))
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:48:36.633 | 2023-03-03T00:48:36.633 | null | null | 10,315,163 | null |
75,622,226 | 1 | null | null | 0 | 7 | I am using [grid.js](https://gridjs.io/) along with its [selection](https://gridjs.io/docs/plugins/selection/) plugin to have the user select specific rows in the table. An example of the script is shown below with a function that gets called when a button on the website is pushed.
```
const grid = new gridjs.Grid({
... | How does one access all of the paginated data in grid.js? | CC BY-SA 4.0 | null | 2023-03-03T00:46:03.120 | 2023-03-03T00:46:03.120 | null | null | 9,074,806 | [
"gridjs"
] |
75,622,235 | 2 | null | 71,275,236 | 0 | null | Given the domain URL `example.com`, you can connect to the server and get the certificate pin (as SHA-256) as follows:
```
openssl s_client -servername example.com -connect example.com:443 | \
openssl x509 -pubkey -noout | \
openssl rsa -pubin -outform der | \
openssl dgst -sha256 -binary | \
openssl en... | null | CC BY-SA 4.0 | null | 2023-03-03T00:48:27.757 | 2023-03-03T00:48:27.757 | null | null | 1,920,835 | null |
75,622,237 | 2 | null | 75,612,730 | 0 | null | finally, I fixed this error.
It's because of the permission.
```
cd /usr/local
sudo chown -R YOUENAME:admin ./Flutter
sudo chown -R YOUENAME:admin ./Users/YOURNAME/.pub-cache
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:48:37.383 | 2023-03-03T00:48:37.383 | null | null | 5,788,629 | null |
75,622,238 | 1 | null | null | -1 | 25 | Taking the input from user like below.
E.g. 1001
1002
1003
1004
.
.
.
n
Appending values like below format.
"1001","1002","1003","1004",.....n
How to implement this in C.
| How to Append values in certain format in C | CC BY-SA 4.0 | null | 2023-03-03T00:48:39.403 | 2023-03-04T08:32:38.357 | 2023-03-04T08:32:38.357 | 8,358,993 | 8,358,993 | [
"c"
] |
75,622,239 | 2 | null | 75,620,954 | 0 | null | I found a much easier way. Can use the RID to get the coordinates:
```
tilemap.get_coords_for_body_rid(collision.get_collider_rid())
```
so can then call erase cell with that, which works.
```
tilemap.erase_cell(0, tilemap.get_coords_for_body_rid(collision.get_collider_rid()))
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:48:41.753 | 2023-03-03T00:48:41.753 | null | null | 1,367,017 | null |
75,622,243 | 2 | null | 75,622,167 | 1 | null | [map](https://docs.databricks.com/sql/language-manual/functions/map.html) is a scalar function and can't be used as aggregate one. Try using [map_from_arrays](https://docs.databricks.com/sql/language-manual/functions/map_from_arrays.html) over aggregated arrays:
```
select ...,
map_from_arrays(array_agg(A.NAME), ar... | null | CC BY-SA 4.0 | null | 2023-03-03T00:49:29.817 | 2023-03-03T00:57:12.847 | 2023-03-03T00:57:12.847 | 2,501,279 | 2,501,279 | null |
75,622,220 | 2 | null | 75,621,909 | 1 | null | There are undocumented, but [largely safe-to-use](https://www.postgresql.org/message-id/flat/CAGHENJ5MnkKeymEVFO6daga6qzTruG91u9yeuwkBuTZ_xRSPRg%40mail.gmail.com) hashing functions for every built-in data type in Postgres. Those are used for hash partitioning and indexing, among other things. For `integer` (`int4`) inp... | null | CC BY-SA 4.0 | null | 2023-03-03T00:45:19.287 | 2023-03-03T01:04:57.797 | 2023-03-03T01:04:57.797 | 939,860 | 939,860 | null |
75,622,241 | 1 | null | null | 0 | 47 | I have N M-dimensional vectors. i.e. I have a (N, M) dimensional numpy array, let's call it "mean".
I also have N M-by-M dimensional covariance matrices. i.e. I have a (N, M, M) dimensional numpy array, let's call it "covs".
Here's the question: How do I efficiently generate N random vectors, distributed according to t... | How do I apply np.random.multivariate_normal on list of vectors and covariance matrices? | CC BY-SA 4.0 | null | 2023-03-03T00:49:18.627 | 2023-03-03T00:49:18.627 | null | null | 8,168,410 | [
"python",
"arrays",
"numpy"
] |
75,622,244 | 2 | null | 75,622,207 | 0 | null | Cannot include file %1 into executable.
The file must be distributed with executable as %2.
You have to put the executable in folder
`%2: path-to-executable/xdg-open`.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:49:41.710 | 2023-03-03T00:56:12.450 | 2023-03-03T00:56:12.450 | 20,969,672 | 20,969,672 | null |
75,622,246 | 2 | null | 75,518,324 | 0 | null | I think you should try PostgreSQL for better parallel processing. SQLite is a in memory DB which is not designed for high load operations.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:50:21.620 | 2023-03-03T00:50:21.620 | null | null | 3,544,931 | null |
75,622,245 | 1 | 75,622,269 | null | 0 | 30 | I want to implement this concept, where based on my input condition I will get output.
Not so strong on java ..saw many post but yet to solve this ..
There issue I am getting is "myValue1 or myValue20 cannot be resolved or is not a field".
```
public class myClass extends XXX{
Object p;
public myClass() {
... | Select class based on condition | CC BY-SA 4.0 | null | 2023-03-03T00:50:04.617 | 2023-03-03T00:56:53.170 | null | null | 21,322,593 | [
"java"
] |
75,622,242 | 1 | null | null | 0 | 12 | I've been combing through Microsoft's documentation on the REST API to manipulate files in our SharePoint Online document tree. I'm ALMOST to my solution but having an issue.
I'm running CURL commands on a Linux server. And in the /tmp directory on Linux I have a file 'a.txt'. I can create a new file on SharePoint onli... | How to upload file to SharePoint Online using REST API and CURL | CC BY-SA 4.0 | null | 2023-03-03T00:49:20.603 | 2023-03-03T18:09:35.997 | 2023-03-03T18:09:35.997 | 10,360,261 | 10,360,261 | [
"linux",
"curl",
"http-post",
"sharepoint-online",
"sharepoint-rest-api"
] |
75,622,248 | 2 | null | 62,105,034 | 0 | null | You need to go to [AWS Certificate Manager](https://aws.amazon.com/acm/) and select list certificates, select the certificate in need of renewal. Under Domains click the button "Create records in Route 53". This takes you to a new page where you click "Create Records".
It typically takes DNS 30 minutes to propagate the... | null | CC BY-SA 4.0 | null | 2023-03-03T00:50:39.150 | 2023-03-03T00:50:39.150 | null | null | 18,473,077 | null |
75,622,252 | 2 | null | 51,211,959 | 0 | null | For anyone having this problem, you can wrap your `ListTile` in a `Card` widget to prevent it.
```
Card(child: ListTile(....))
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:52:04.190 | 2023-03-03T00:52:04.190 | null | null | 1,409,510 | null |
75,622,251 | 2 | null | 75,622,206 | 3 | null | You can use `iter_mut` to get mutable references instead of shared references. This also means you can omit the `enumerate` call since the index isn't needed any longer.
```
for (dv, v) in d.values.iter_mut().zip([true, false, false, true]) {
if v != *dv {
*dv = v;
}
}
```
Notes:
- `d.v... | null | CC BY-SA 4.0 | null | 2023-03-03T00:51:52.590 | 2023-03-03T01:03:48.550 | 2023-03-03T01:03:48.550 | 442,760 | 442,760 | null |
75,622,249 | 1 | 75,622,470 | null | 1 | 37 | I want to implement queryset filtering in Django depending on values of nested list, e.g.
```
titles = [ ['nike', '38', 'blue'],
['nike', '38', 'grey'],
['adidas', '38', 'blue'],
['adidas', '38', 'grey'],
['salmon', '38', 'blue'],
['salmon', '38', 'grey'] ]
```
The ... | How to implement a QuerySet filter on Cartesian product/List of lists? | CC BY-SA 4.0 | null | 2023-03-03T00:51:14.847 | 2023-03-03T01:43:40.440 | 2023-03-03T01:37:53.670 | 2,011,147 | 6,743,205 | [
"django",
"list",
"filter",
"django-queryset"
] |
75,622,253 | 2 | null | 75,622,183 | 0 | null | Looks like you might have a typo in there? There seems to be an extra `[` that's not closed.
```
await checkstatus.update({reply.match[1]: reply.match[2] == 'off'})
```
Apart from that, based on the code, it looks like you're trying to set the property based on whether reply.match[2] is equal to 'off'.
That'll set the... | null | CC BY-SA 4.0 | null | 2023-03-03T00:52:18.357 | 2023-03-03T01:01:04.873 | 2023-03-03T01:01:04.873 | 2,407,460 | 2,407,460 | null |
75,622,247 | 1 | null | null | 0 | 11 | Looks like the C3.js no longer gets supported?
I'm having issue on the plugin and not sure what causing it (before it works not sure if there's update that cause me the issue?).
I also posted an issue on Git [https://github.com/c3js/c3/issues/2877](https://github.com/c3js/c3/issues/2877)
- - - -
Other plugin included ... | Cannot read properties of undefined (reading 'schemeCategory10') | CC BY-SA 4.0 | null | 2023-03-03T00:50:24.410 | 2023-03-03T02:03:15.337 | 2023-03-03T02:03:15.337 | 2,534,479 | 2,534,479 | [
"c3.js"
] |
75,622,224 | 1 | null | null | 2 | 41 | I've build an android app, and I want when I open the application again it come to last value and state that I did before. This error is coming after I run the application. Can someone please provide an example code of what's needed to solve for the error below?
> Exception has occurred. LateError (LateInitializationEr... | LateError (LateInitializationError: Field 'prefs' has not been initialized.) | CC BY-SA 4.0 | null | 2023-03-03T00:45:52.567 | 2023-03-03T07:40:23.020 | 2023-03-03T07:40:23.020 | 19,748,893 | 19,748,893 | [
"android",
"flutter",
"firebase",
"dart"
] |
75,622,257 | 2 | null | 74,726,289 | 0 | null | Rather than exclude everything else, try to include just the ERROR logs, with something similar to:
```
ad.datadoghq.com/redacted.logs: >-
[{
"source": "redacted",
"service": "redacted",
"log_processing_rules": [{
"type": "include_at_match",
"name": "ingest_error_logs",... | null | CC BY-SA 4.0 | null | 2023-03-03T00:53:08.383 | 2023-03-03T00:53:08.383 | null | null | 13,017,589 | null |
75,622,258 | 2 | null | 75,621,004 | 0 | null | [Seems like](https://github.com/zambien/terraform-provider-apigee/issues/48#issuecomment-554198309) it's related to golang and not so much to GoReleaser tool. I managed to reproduce it when running it `alpine:latest`:
```
/terraform-provider-confluent # GOOS=linux GOEXPERIMENT=boringcrypto GO_ENABLEDC=1 GO111MODULE=on ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:53:09.977 | 2023-03-03T00:53:09.977 | null | null | 21,322,014 | null |
75,622,254 | 2 | null | 75,621,409 | 0 | null | > What precisely I need to do to connect from CLI as "admin" or "ec2-user" to the instance?
You would need at least the following:
- `/home/admin/.ssh/authorized_keys``/home/ec2-user/.ssh/authorized_keys`- `ssh -i /path/to/private.key``~/.ssh/config`- `username@host``~/.ssh/config``dantes`- -
I think AWS has a browser... | null | CC BY-SA 4.0 | null | 2023-03-03T00:52:29.607 | 2023-03-03T00:52:29.607 | null | null | 19,438,577 | null |
75,622,234 | 1 | null | null | 0 | 25 | Hi so recently I had some issues with really stupid and simple code for a testing out an android app the code is below if somebody can tell me where I make a mistake?
That is what's in the manifest file:
```
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="example.myapp">
<uses-per... | Android app will not compile and dosent give any specific error | CC BY-SA 4.0 | null | 2023-03-03T00:48:20.027 | 2023-03-03T17:06:57.920 | 2023-03-03T17:06:57.920 | 1,431,720 | 20,162,526 | [
"java",
"android",
"apk"
] |
75,622,255 | 2 | null | 66,060,848 | 0 | null | As you mentioned your task is running right now so by having id you can find out if your task is done or not it was from this [answare](https://stackoverflow.com/questions/30753040/retrieve-task-result-by-id-in-celery)
```
from celery.result import AsyncResult
from .tasks import app
res = AsyncResult('655890aa-4f02-46... | null | CC BY-SA 4.0 | null | 2023-03-03T00:52:49.283 | 2023-03-03T00:52:49.283 | null | null | 12,077,863 | null |
75,622,232 | 1 | null | null | 0 | 8 | I am working on training the BERT Model for Pytorch. I'm quite new to Pytorch as well. My code as replicated from: [https://towardsdatascience.com/text-classification-with-bert-in-pytorch-887965e5820f](https://towardsdatascience.com/text-classification-with-bert-in-pytorch-887965e5820f) keeps returning an error: "Index... | Index out of Range in Self - BERT Model Tuning Pytorch | CC BY-SA 4.0 | null | 2023-03-03T00:48:07.080 | 2023-03-03T00:48:07.080 | null | null | 21,322,661 | [
"pytorch",
"nlp",
"indexoutofboundsexception",
"bert-language-model"
] |
75,622,263 | 2 | null | 75,569,703 | 1 | null | After posting same question to that library (qpl) forum, i got my answer.
I have overlooked the documentation where it says.. how to pass the barcode text. As i thought it will be a separate method to rotate the barcode.
Basically i just need to append specific keywords with the barcode text to make the code draw rotat... | null | CC BY-SA 4.0 | null | 2023-03-03T00:54:17.847 | 2023-03-03T00:54:17.847 | null | null | 12,938,841 | null |
75,622,267 | 2 | null | 75,610,189 | 0 | null | if it helps to someone here is my code I solve it:
```
import asyncio
from pyppeteer import launch
from pyppeteer_stealth import stealth
_extention2_path = open("./Data/extentions/extention_path2.txt", "r").read().rstrip()
_extention3_path = open("./Data/extentions/extention_path3.txt", "r").read().rstrip(... | null | CC BY-SA 4.0 | null | 2023-03-03T00:55:08.123 | 2023-03-03T00:55:08.123 | null | null | 21,315,214 | null |
75,622,266 | 1 | null | null | 0 | 21 | When I try to use `pool.starmap` with multiple args, It results in an error.
```
...
def snake_process(x, snakes, snake, nets, max_score, ge):
print("start process no" + str(x))
while True:
state_old, dis_old = agent.get_state(snake)
output = nets[x].activate(state_old)
final_move = [0,... | Index out of Range error keeps hapening when I use Pool.starmap | CC BY-SA 4.0 | null | 2023-03-03T00:54:49.460 | 2023-03-03T00:54:49.460 | null | null | 21,322,693 | [
"python",
"python-3.x",
"multiprocessing",
"python-multiprocessing"
] |
75,622,269 | 2 | null | 75,622,245 | 0 | null | Consider creating a common `interface` that all the three classes implement.
```
interface ValueProvider {
String getValue(int index);
}
class Abc implements ValueProvider {
@Override
public String getValue(int index) {
return switch(index) {
case 1 -> "11";
case 20 -> "20";
... | null | CC BY-SA 4.0 | null | 2023-03-03T00:56:53.170 | 2023-03-03T00:56:53.170 | null | null | 9,513,184 | null |
75,622,261 | 1 | null | null | 1 | 22 | I'm trying to learn how `forwardRef` works in React and playing around with it based on official docs. I understand how it works with this basic example:
```
import { forwardRef, useRef, useImperativeHandle } from "react"
const ChildComp = forwardRef((props, ref) => {
useImperativeHandle(ref, () => ({
showAlert(... | How to access ref of child component with wrappers in React | CC BY-SA 4.0 | null | 2023-03-03T00:54:16.583 | 2023-03-03T01:06:50.173 | null | null | 5,995,890 | [
"javascript",
"reactjs",
"react-ref",
"react-forwardref"
] |
75,622,259 | 1 | 75,622,622 | null | 0 | 29 | I'm creating a game, and the code that I want Java to run isn't running even when the user inputs a valid answer and I'm not sure how to fix the problem.
I tried creating a keyboard statement for the variable and seperately tried a static String variable name for after the public class, but instead it gives me errors w... | My Java code isn't executing print statements when the user inputs an option they want to choose. Why is it not working and how do I fix it? | CC BY-SA 4.0 | null | 2023-03-03T00:53:30.047 | 2023-03-03T02:19:42.803 | 2023-03-03T00:58:07.030 | 21,322,556 | 21,322,556 | [
"java",
"compiler-errors",
"execution",
"geany"
] |
75,622,270 | 1 | 75,622,298 | null | 0 | 22 | I have a classe containing several `np.array` :
```
class VECMParams(ModelParams):
def __init__(
self,
ecm_gamma: np.ndarray,
ecm_mu: Optional[np.ndarray],
ecm_lambda: np.ndarray,
ecm_beta: np.ndarray,
intercept_coint: bool,
):
self.ecm_gamma = ecm_gamma
... | Can't get rid of mypy error about wrong type numpy.bool_ and bool | CC BY-SA 4.0 | null | 2023-03-03T00:57:08.667 | 2023-03-03T01:33:49.513 | null | null | 4,508,962 | [
"python",
"numpy",
"mypy"
] |
75,622,264 | 2 | null | 75,593,708 | 0 | null | Per my testing, ActivatedRoute always have property ULR empty. Strange, why? Not sure..
Alternative solution without ActivatedRoute, but with Router answered here:
[How to reactively subscribe to URL change and get URL in Angular RxJS?](https://stackoverflow.com/questions/75608906/how-to-reactively-subscribe-to-url-cha... | null | CC BY-SA 4.0 | null | 2023-03-03T00:54:20.600 | 2023-03-03T00:54:20.600 | null | null | 3,394,776 | null |
75,622,268 | 1 | 75,622,526 | null | 0 | 24 | I've already tried the solutions described in this question: [How to check if two Torch tensors or matrices are equal?](https://stackoverflow.com/questions/32996281/how-to-check-if-two-torch-tensors-or-matrices-are-equal)
and I'm not having any luck for some reason.
I'm just trying to test reproducibility of my random ... | comparing two tensors in pytorch | CC BY-SA 4.0 | null | 2023-03-03T00:56:07.753 | 2023-03-03T19:42:05.643 | 2023-03-03T19:42:05.643 | 901,444 | 901,444 | [
"pytorch",
"tensor",
"random-seed",
"equivalence"
] |
75,622,275 | 1 | null | null | 0 | 22 | How to select the .field-wrapper element when the .list-nav element has the .active class?
The objective is that .field-wrapper z-index = -1 only with CSS.
```
<nav class="nav">
<a href=""></a>
<ul class="nav-list"></ul>
<img src="" alt="">
</nav>
<div class="main">
<div class="wrapper">
<div c... | How to modify an element when another element has an .active class with CSS? | CC BY-SA 4.0 | null | 2023-03-03T00:57:32.070 | 2023-03-03T00:57:32.070 | null | null | 20,138,988 | [
"html",
"css",
"css-selectors",
"z-index"
] |
75,622,274 | 2 | null | 54,892,403 | 0 | null | Other answers mention that `React.StrictMode` cause the dispatch function to be run twice. Doing so should result in the same result both times, because reducers are supposed to be deterministic. If the effect of the dispatch is applied twice and you're using an object to represent your state, it might be because you'r... | null | CC BY-SA 4.0 | null | 2023-03-03T00:57:30.397 | 2023-03-03T00:57:30.397 | null | null | 11,633,568 | null |
75,622,271 | 1 | null | null | -1 | 25 | I wrote the following Typescript code to check out how `jsonwebtoken` works.
```
import * as jwt from "jsonwebtoken";
import * as fs from "fs";
const privateKey = fs.readFileSync("key.pem");
const token = jwt.sign({ foo: "bar" }, privateKey, { algorithm: "RS256" });
const decoded = jwt.decode(token, {complete: true});... | Typescript error: jwt.decode is not a function | CC BY-SA 4.0 | null | 2023-03-03T00:57:14.250 | 2023-03-03T16:03:04.980 | null | null | 3,582,500 | [
"typescript",
"jwt",
"runtime-error"
] |
75,622,260 | 1 | 75,623,262 | null | 0 | 26 | I want to parse out a set of CSV records from JSON.
The JSON looks like this:
```
{
"orderbookSnapshotItem":{
"exchange":"WhirlyGig",
"contract":"OptimalSpring",
"bidPrice":[
{
"price":"47.205",
"counterparty":"WhirlyGig",
"quantity":"10",
"a... | Converting nested JSON to CSV - specifically an object containing necessary values for each record and an array of values | CC BY-SA 4.0 | null | 2023-03-03T00:53:57.263 | 2023-03-03T10:10:03.720 | null | null | 5,559,394 | [
"json",
"csv",
"jq",
"export-to-csv"
] |
75,622,279 | 2 | null | 23,193,614 | 0 | null | If you are using macOs turnoff or Pause Private Relay
goto iCloud setting then you will see Private Relay
that solved my issue
[](https://i.stack.imgur.com/tAPy8.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T00:58:19.423 | 2023-03-03T00:58:19.423 | null | null | 1,925,560 | null |
75,622,278 | 2 | null | 75,622,173 | 0 | null | It is because the image is garbage collected as there is no variable referencing it.
Suggest to pass the label to the function and update the image of the label inside the function. Use an attribute of the label to store the reference of the image to avoid garbage collection:
```
def Retrieve_Image(treeview, label):
... | null | CC BY-SA 4.0 | null | 2023-03-03T00:58:06.163 | 2023-03-03T00:58:06.163 | null | null | 5,317,403 | null |
75,622,280 | 2 | null | 3,224,606 | 0 | null | The /bin directory contains the essential user binaries (programs) that must be present when the system is mounted in single-user mode. Applications such as Firefox are stored in /usr/bin, while important system programs and utilities such as the bash shell are located in /bin. The /usr directory may be stored on anoth... | null | CC BY-SA 4.0 | null | 2023-03-03T00:58:29.423 | 2023-03-03T00:58:29.423 | null | null | 21,322,394 | null |
75,622,282 | 1 | null | null | -1 | 8 | My teammate and I have a GraphQL project that is up and working but we want to implement authorization so that unauthenticated users are basically denied access to everything but authenticated users can be authorized with access to specific resources.
I've found several articles but they all seem to want to use apollo ... | What's a good way to implement authorization in a graphql project? | CC BY-SA 4.0 | null | 2023-03-03T00:59:02.007 | 2023-03-03T00:59:02.007 | null | null | 13,960,180 | [
"mongoose",
"graphql",
"api-authorization"
] |
75,622,281 | 2 | null | 75,618,225 | 0 | null | It looks like running `R -d gdb` performs the following:
```
LD_LIBRARY_PATH=/usr/lib/R/lib:\
/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/default-java/lib/server \
gdb /usr/lib/R/bin/exec/R
```
and GDB doesn't like something about that `LD_LIBRARY_PATH`.
So step 0 is to run above command in a shell and confirm that it caus... | null | CC BY-SA 4.0 | null | 2023-03-03T00:58:41.783 | 2023-03-04T13:23:31.877 | 2023-03-04T13:23:31.877 | 50,617 | 50,617 | null |
75,622,283 | 1 | null | null | 0 | 5 | Wont compile. The type of the elements cant be infrefered.
```
auto rng = std::array{{1,2}, {3,4}, {5,6},...};
```
CTAD for each argument results in lots of retyping:
```
auto rng = std::array{std::array{1,2}, std::array{3,4}, std::array{5,6},...};
```
If you specify the type of the elements, then the size of the arr... | Type deduction for std::array literals | CC BY-SA 4.0 | null | 2023-03-03T00:59:22.300 | 2023-03-03T00:59:22.300 | null | null | 11,998,382 | [
"stdarray"
] |
75,622,284 | 2 | null | 75,622,283 | 0 | null | C++20 provides a `std::to_array` function where you can provide the element type and while still deducing the length
```
auto rng = std::to_array<std::array<int, 2>>({{1,2}, {3,4}, {5,6},...});
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:59:22.300 | 2023-03-03T00:59:22.300 | null | null | 11,998,382 | null |
75,622,273 | 2 | null | 75,621,819 | 2 | null | the Cpython interpreter is not "living" in a different thread, it is just a dll, that has C functions that can be called by any application, this dll also has a few global structs which hold information like the loaded modules and the variables in them, these structs are accessible by any thread in the application thro... | null | CC BY-SA 4.0 | null | 2023-03-03T00:57:21.387 | 2023-03-03T09:00:38.923 | 2023-03-03T09:00:38.923 | 15,649,230 | 15,649,230 | null |
75,622,286 | 1 | null | null | -3 | 15 | "ChatGPT urgently needs more space to avoid temporary space, it needs to interact with the user so that it becomes closer to their personality, in order to understand their daily routine and entire process."****
"I'm hoping for feedback from third parties and maybe even to meet some programmers who are working OpenAI o... | Ideas GPT and OpenAI | CC BY-SA 4.0 | null | 2023-03-03T00:59:48.270 | 2023-03-03T00:59:48.270 | null | null | 21,322,681 | [
"openai-api"
] |
75,622,290 | 1 | null | null | -3 | 16 | So, I was wondering if anyone knew how I could hack a bank. Obviously, I am doing this ONLY for EDUCATIONAL PURPOSES.
I watched some YouTube vids on hacking banks, but they didn't really explain much.
| Yo, does anyone know how to hack a bank? | CC BY-SA 4.0 | null | 2023-03-03T01:00:44.023 | 2023-03-03T01:00:44.023 | null | null | 21,123,338 | [
"currency",
"onlinebanking"
] |
75,622,276 | 1 | null | null | 2 | 47 | I have a class with several template methods, i.e.:
```
class MessageEndpoint
{
public:
using SupportedMessages = boost::mp11::mp_list<messaging::MessageType1, messaging::MessageType2, messaging::MessageTypeN>;
public:
virtual ~MessageEndpoint();
public:
template <typename MessageType>
UID subscribe(c... | How to instantiate template methods in a "cycle"? | CC BY-SA 4.0 | null | 2023-03-03T00:57:43.897 | 2023-03-03T11:48:37.007 | 2023-03-03T11:48:37.007 | 7,883,447 | 7,883,447 | [
"c++",
"templates",
"template-meta-programming",
"template-specialization",
"boost-mp11"
] |
75,622,288 | 2 | null | 75,594,309 | 1 | null | Swift provides no mechanism to make the constraint you want. You can do it, just not as type-constrainedly as you should be able to.
```
import Algorithms
extension ServiceFetcher {
subscript<Service>(_: Service.Type = Service.self) -> Service? {
services.firstNonNil { $0 as? Service }
}
}
```
```
ServiceFetc... | null | CC BY-SA 4.0 | null | 2023-03-03T01:00:26.750 | 2023-03-03T01:00:26.750 | null | null | 652,038 | null |
75,622,272 | 1 | null | null | -3 | 47 | I created a temperature class along with this to use within the code but I can not seem to get it to calculate correctly.I added the temperature class at the bottom. The top part is what I have so far its within initializeTemperatures and displayCelsiusTemperatures that I am having the issues. There also seems to be a ... | Why is my code not calculating Celsius correctly? | CC BY-SA 4.0 | null | 2023-03-03T00:57:16.013 | 2023-03-03T01:57:59.960 | 2023-03-03T01:57:59.960 | 21,142,429 | 21,142,429 | [
"java",
"temperature"
] |
75,622,285 | 1 | 75,626,662 | null | 1 | 51 | I have this in my MERN stack code file, and it works well.
```
exports.chatbot = async (req, res) => {
console.log("OpenAI Chatbot Post");
const { textInput } = req.body;
try {
const response = await openai.createCompletion({
model: "text-davinci-003",
prompt: `
What is your name?
... | openai.createChatCompletion is not a function, axios error while running openai chat completion | CC BY-SA 4.0 | null | 2023-03-03T00:59:29.103 | 2023-03-03T11:43:57.890 | 2023-03-03T01:02:45.707 | 19,315,721 | 19,315,721 | [
"axios",
"openai-api"
] |
75,622,287 | 1 | null | null | 0 | 14 | [codepen](https://codepen.io/rs-arturo/pen/KKxmzNm)
```
// reveal point from bottom and top of the window
var revealerpoint = window.innerHeight / 2;
window.addEventListener('scroll', reveal);
reveal();
function reveal() {
var revealers = document.querySelectorAll('.text');
var images = document.querySelectorA... | Can't replicate a scroll reveal animation on Squarespace, but works fine on codepen and local server | CC BY-SA 4.0 | null | 2023-03-03T00:59:51.377 | 2023-03-03T02:48:22.770 | 2023-03-03T02:48:22.770 | 11,107,541 | 20,195,978 | [
"javascript",
"html",
"css",
"squarespace"
] |
75,622,292 | 1 | null | null | -3 | 20 | I have an data set in an spreadsheet that I would like to have applied to a series of several hundred separate data sets to create a new version of that dataset.
[Data 1] x [Data Series] = [New Data]
I am wondering if I should make a batch file, python script or use google script.
Any advice on where to start would be ... | Data Programming Using Excel | CC BY-SA 4.0 | null | 2023-03-03T01:01:04.230 | 2023-03-03T01:01:04.230 | null | null | 7,872,959 | [
"python",
"excel",
"google-apps-script",
"google-sheets",
"batch-processing"
] |
75,622,291 | 2 | null | 75,621,662 | 0 | null | You can use the child selector (`#three p`) or the immediate child selector (`#three > p`). Like this for the immediate child selector:
```
#three>p {
display: none;
}
```
```
<div>
<p>My Website</p>
<div id="one">
<!--#shadow-root (open)-->
<div id="two">
<div id="three">
<p>Text</p>
... | null | CC BY-SA 4.0 | null | 2023-03-03T01:00:45.177 | 2023-03-03T01:00:45.177 | null | null | 5,045,467 | null |