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,638,222 | 1 | null | null | 0 | 13 | I am trying to create the following table with Sqlalchemy on Postgres db:
```
from sqlalchemy import Column, DateTime, Float, Integer, String, func
from sqlalchemy.orm import declarative_base
Base = declarative_base()
class Test(Base):
__tablename__ = "tests"
id = Column(Integer, primary_key=True)
name... | Sqlalchemy + psycopg: cannot use column reference in DEFAULT expression | CC BY-SA 4.0 | null | 2023-03-04T19:40:03.473 | 2023-03-04T19:40:03.473 | null | null | 1,315,621 | [
"python",
"postgresql",
"sqlalchemy"
] |
75,638,231 | 2 | null | 75,638,151 | 1 | null | `ifelse` in R is different from `if() {} else {}`. I think you want the latter:
```
if(vs_parameter == "all") {
unique(mtcars$vs)
} else(
vs_parameter
)
```
As Waldi noted, `ifelse` takes the "shape" of `test` -- in this case, a boolean vector of length 1 -- and outputs in the same shape. The first element of `uni... | null | CC BY-SA 4.0 | null | 2023-03-04T19:41:45.960 | 2023-03-04T21:34:29.790 | 2023-03-04T21:34:29.790 | 6,851,825 | 6,851,825 | null |
75,638,236 | 2 | null | 75,637,788 | 0 | null | It was simple, I just had to add
`#include <math.h>`
`#include <cstring>`
to the start of the file.
I also had to add the flag `-lwinmm` in the second command.
Thanks for the suggestions in the comments!
| null | CC BY-SA 4.0 | null | 2023-03-04T19:42:34.637 | 2023-03-04T19:45:07.973 | 2023-03-04T19:45:07.973 | 21,332,937 | 21,332,937 | null |
75,638,235 | 2 | null | 75,634,981 | 0 | null | A simple `array_map` should be enough to make an array go from this
```
[
['attribute' => 'name', 'value' => 'John'],
['attribute' => 'name', 'value' => 'Jane']
]
```
to
```
[
['name' => 'John'],
['name' => 'Jane'],
]
```
```
$mapped = array_map(fn($i) => [$i['attribute'] => $i['value']], $array);
```... | null | CC BY-SA 4.0 | null | 2023-03-04T19:42:32.817 | 2023-03-04T19:42:32.817 | null | null | 4,339,402 | null |
75,638,237 | 2 | null | 63,238,715 | 0 | null | it's not supported by DataGrip
| null | CC BY-SA 4.0 | null | 2023-03-04T19:42:49.537 | 2023-03-04T19:42:49.537 | null | null | 15,213,332 | null |
75,638,223 | 2 | null | 70,983,788 | 0 | null | My solution uses IMemoryCache from ASP.NET and PEM certificates.
Main logic is encapsulated in `HttpsConfigurationService`:
```
public class HttpsConfigurationService : IHttpsConfigurationService
{
private readonly ILogger<HttpsConfigurationService> _logger;
private readonly IMemoryCache _memoryCach... | null | CC BY-SA 4.0 | null | 2023-03-04T19:40:08.010 | 2023-03-04T19:40:08.010 | null | null | 6,404,049 | null |
75,638,220 | 1 | null | null | -1 | 10 | I'm trying to render a link to the sign up page if the user is not logged in, and if the user is logged in show thier email and a logout button.
The code works at first but when i tried to resize the browser or open Devtools the DOM freezes and the elements tab in the Devtools shows nothing, the Console tab shows nothi... | Firebase: OnAuthStateChange() causing DOM to freeze when window is resized | CC BY-SA 4.0 | null | 2023-03-04T19:38:51.427 | 2023-03-04T19:56:23.817 | null | null | 21,333,149 | [
"javascript",
"reactjs",
"firebase",
"jsx"
] |
75,638,219 | 1 | null | null | 0 | 6 | Consider a data source that can be described as a stream of events where some map's `key` has a `value` that is captured at a specific time. In a table it would look something like this:
| when | key | value |
| ---- | --- | ----- |
| 2022-02-01 | foo | bar |
| 2022-02-02 | foo | bar |
| 2022-02-03 | foo | bar |
... | Is NoSQL single table design inappropriate for access patterns that need to derive information? | CC BY-SA 4.0 | null | 2023-03-04T19:38:28.333 | 2023-03-04T19:38:28.333 | null | null | 304,832 | [
"database-design",
"nosql"
] |
75,638,239 | 2 | null | 75,578,594 | 0 | null | The issue you are facing might be related to the way you are handling errors in your code i haven't check but this is what i understood from you code.
In the code you shared, you are calling Utils.flushBarErrorMessages method when the API call is successful, and you are calling it again when there is an error. However,... | null | CC BY-SA 4.0 | null | 2023-03-04T19:42:56.580 | 2023-03-04T19:42:56.580 | null | null | 4,817,557 | null |
75,638,232 | 1 | null | null | 0 | 51 | This is very similar, if not duplicate to [Use tidyr's function `extract` with optional capture group](https://stackoverflow.com/questions/73927505/use-tidyrs-function-extract-with-optional-capture-group) and [Tidyr separate with optional groups](https://stackoverflow.com/questions/67807641/tidyr-separate-with-optional... | tidyr extract groups where not all groups are always present | CC BY-SA 4.0 | null | 2023-03-04T19:41:51.717 | 2023-03-04T22:33:01.160 | 2023-03-04T22:33:01.160 | 13,972,333 | 7,941,188 | [
"r",
"regex",
"tidyr"
] |
75,638,233 | 1 | 75,638,259 | null | 0 | 12 | I'm trying to get input in component Home
```
const Home = () => {
let inputRef = useRef<HTMLInputElement>(null);
const deleteInputText = (e: React.MouseEvent<HTMLDivElement>) => {
dispatch(changeInputSearh(""));
if (inputRef && inputRef.current) {
inputRef.current.focus();
}
};
return (
... | Why i cant get element into useRef? | CC BY-SA 4.0 | null | 2023-03-04T19:42:16.320 | 2023-03-04T19:46:32.567 | 2023-03-04T19:45:46.353 | 20,088,324 | 21,196,164 | [
"reactjs",
"types"
] |
75,638,238 | 2 | null | 75,633,581 | 1 | null | I realized 15 hours later that I was caching `HEAD` requests before ever caching `GET` requests
and after fixing that, i had to deal with a locked response from line 7 by adding `clone()`, but After having fixed the issue, I no longer need debugging lines.
So the answer for anyone else who has code on their website (no... | null | CC BY-SA 4.0 | null | 2023-03-04T19:42:51.063 | 2023-03-04T19:50:46.590 | 2023-03-04T19:50:46.590 | 20,897,575 | 20,897,575 | null |
75,638,240 | 2 | null | 75,636,647 | 1 | null | You can push a route and use `await` to get the results. Then in the pushed page you can return result with `Navigator.of(context).pop()`.
To do so, use this code when you push the route where you scan the QR code:
```
onPressed: () async {
final qrCode = await Navigator.pushNamed(context, "/qrScanner");
},
```
Then... | null | CC BY-SA 4.0 | null | 2023-03-04T19:42:59.997 | 2023-03-04T19:42:59.997 | null | null | 14,726,230 | null |
75,638,241 | 2 | null | 53,155,957 | 0 | null | I love D3 and needed a real answer to this problem, so I dove in further.
In researching the problem, I found that Observable notebooks are not bad, per se, but they obfuscate things like imports and data formatting, and mess with the order of the code blocks. That said, many of Mike Bostock's Observables examples are... | null | CC BY-SA 4.0 | null | 2023-03-04T19:43:00.423 | 2023-03-04T19:43:00.423 | null | null | 717,274 | null |
75,638,247 | 2 | null | 75,638,199 | 0 | null | You have only allowed classes which come from the module `builtins`.
But `__main__.Shape` is a class with the name `Shape` in the module `__main__`, not a class with the name `__main__.Shape` in the module `builtins`.
So an obvious fix would be to change
```
if module == "builtins" and name in safe_builtins | allow_cla... | null | CC BY-SA 4.0 | null | 2023-03-04T19:44:24.340 | 2023-03-04T19:44:24.340 | null | null | 4,621,513 | null |
75,638,227 | 1 | null | null | 0 | 5 | all necessary package installed.
for backend I use Keystone js 3.79
for frontend GQL I use apollo client and for upload images I use apollo client upload.
here is necessary information about my problome.
CreateProduct.jsx
```
import { useMutation } from "@apollo/client";
import gql from "graphql-tag";
import UseForm fr... | I'm trying to upload images via apollo client to keystone js and its have some errors | CC BY-SA 4.0 | null | 2023-03-04T19:40:54.577 | 2023-03-04T19:40:54.577 | null | null | 13,562,623 | [
"apollo-client",
"keystonejs",
"apollo-upload-client"
] |
75,638,245 | 2 | null | 75,637,863 | 1 | null | To prevent a malicious task or script from extracting all your secrets and playing havoc on your environment, the GitHub runner only passes secrets to a step in the workflow when they are passed explicitly.
There currently is no bulk statement that will automatically import all secrets into the scope of a workflow step... | null | CC BY-SA 4.0 | null | 2023-03-04T19:43:49.527 | 2023-03-04T19:43:49.527 | null | null | 736,079 | null |
75,638,251 | 1 | null | null | -1 | 13 | I am trying to pass the string to git page through api call from Pipeline run but getting some string formatting error
`gitCheckInputString = '''{"name":"''' + gitCheckName + '''","output":{"title":"''' + gitCheckName + '''","summary":"''' + message + '''","text":"''' + "The summary:\n{ unaudited: " + str($(params.unau... | python call for git api | CC BY-SA 4.0 | null | 2023-03-04T19:45:01.743 | 2023-03-04T19:45:01.743 | null | null | 21,333,144 | [
"python",
"json",
"api"
] |
75,638,249 | 1 | 75,638,365 | null | 0 | 39 | I have five data frames in `R` and in each of them I have a column titled `DOB` for date of birth and another column titled `StudentID` as well as other variables. However, I would like a function that will reformat the `DOB` column in each data frame to be in this format `%m/%d/%y` and transforms the `DOB` variable i... | Function for reformatting multiple columns in R | CC BY-SA 4.0 | null | 2023-03-04T19:44:56.687 | 2023-03-04T21:57:10.993 | 2023-03-04T20:23:31.473 | 6,461,462 | 15,501,333 | [
"r",
"data-manipulation",
"reformatting"
] |
75,638,258 | 1 | null | null | -1 | 8 | I am attempting to implement a real-time object detection system on a resource-constrained device, but I'm struggling to balance accuracy and speed. How can I optimize my model and processing pipeline to achieve high accuracy with minimal latency and resource consumption?
I have experimented with various pre-trained mo... | Optimizing Real-Time Object Detection on Resource-Constrained Devices: Balancing Accuracy and Speed | CC BY-SA 4.0 | null | 2023-03-04T19:46:31.740 | 2023-03-04T19:46:31.740 | null | null | 21,333,214 | [
"opencv",
"machine-learning",
"deep-learning",
"computer-vision",
"yolo"
] |
75,638,243 | 1 | null | null | 0 | 7 | I'm trying to write a personal script for an Airtable extension that does the following:
1. Calculates progress towards a quarterly writing goal: This sums the numeric values from a field in a specific view.
2. The amount left that I need to write: This is not a number available in my base.
3. Return how many articles... | How do I fix the errors in this Airtable script that calculates the time left in a quarter to achieve a number? | CC BY-SA 4.0 | null | 2023-03-04T19:43:39.460 | 2023-03-04T19:48:16.777 | 2023-03-04T19:48:16.777 | 20,987,264 | 20,987,264 | [
"javascript",
"javascript-objects",
"variable-assignment",
"airtable"
] |
75,638,242 | 1 | null | null | 0 | 15 | Spark worker process is receiving SIGTERM although no manual kill command has been run.
```
Exception in thread "dispatcher-event-loop-9" java.lang.OutOfMemoryError: Java heap space
at java.util.zip.ZipCoder.getBytes(ZipCoder.java:80)
at java.util.zip.ZipFile.getEntry(ZipFile.java:310)
at java.util.jar.JarFile.getEntry... | Spark Worker process is receiving SIGTERM | CC BY-SA 4.0 | null | 2023-03-04T19:43:01.630 | 2023-03-04T20:32:36.033 | 2023-03-04T20:32:36.033 | 12,983,195 | 12,983,195 | [
"apache-spark"
] |
75,638,253 | 1 | null | null | 0 | 5 | I have created a `hooks.slack.com/services` webhook for Slack. This is done as a custom app, as is recommended by Slack as the correct way to do this in 2023.
This hook participates in the following flow:
```
AWS SNS event -> Lambda -> Slack hook -> message in Slack channel
```
I have created the following python AWS ... | Slack webhook API ignores icon_url value | CC BY-SA 4.0 | null | 2023-03-04T19:45:25.873 | 2023-03-04T19:56:47.417 | 2023-03-04T19:56:47.417 | 653,708 | 653,708 | [
"slack",
"slack-block-kit"
] |
75,638,259 | 2 | null | 75,638,233 | 3 | null | You are not adding the `ref` to the input, you're only passing it down to your custom `MyInput` component.
```
const MyInput = React.forwardRef((props: any, ref) => {
console.log(ref);
return <input {...props} ref={ref}></input>;
});
```
| null | CC BY-SA 4.0 | null | 2023-03-04T19:46:32.567 | 2023-03-04T19:46:32.567 | null | null | 20,088,324 | null |
75,638,261 | 1 | null | null | 0 | 8 | [https://login.microsoftonline.com/tenant_id/oauth2/v2.0/token](https://login.microsoftonline.com/tenant_id/oauth2/v2.0/token) returns JWT token. Is it possible to configure it to return JWE token?
| how to configure Azure AD B2C to create JWE token | CC BY-SA 4.0 | null | 2023-03-04T19:47:10.257 | 2023-03-04T20:00:52.300 | 2023-03-04T20:00:52.300 | 18,558,424 | 18,558,424 | [
"azure",
"oauth-2.0",
"azure-active-directory",
"azure-ad-b2c"
] |
75,638,254 | 1 | null | null | 0 | 13 | I am trying to build the tutorial6 from the google repo, which should draw a triagle with a texture.
[https://github.com/googlesamples/android-vulkan-tutorials](https://github.com/googlesamples/android-vulkan-tutorials)
Yet, I can't get it to build and it always gives me this error:
```
1: Task failed with an exception... | can't build google vulkan sample (textures) | CC BY-SA 4.0 | null | 2023-03-04T19:45:28.943 | 2023-03-04T19:45:28.943 | null | null | 3,657,747 | [
"android",
"android-ndk",
"vulkan"
] |
75,638,250 | 2 | null | 75,636,391 | 1 | null | Your programme code via command line calling that library should be working so your right to question why not.
From Artifex comment:-
> You should be aware that many PDF files will not produce the text you expect for a number of reasons. The only reliable form is a PDF where all the fonts have ToUnicode CMaps (which ar... | null | CC BY-SA 4.0 | null | 2023-03-04T19:45:00.457 | 2023-03-04T21:02:35.910 | 2023-03-04T21:02:35.910 | 10,802,527 | 10,802,527 | null |
75,638,263 | 1 | null | null | 0 | 12 | I want to know is there any way possible for getting google maps api for free just for the sake of educational purposes as I am going to start my final year project and in desperate need for the API. As a student I don’t have the resources to pay for that. Any help would be appreciated. Thanks in advance.
A little help... | Google Maps Api for educational purpose | CC BY-SA 4.0 | null | 2023-03-04T19:47:28.290 | 2023-03-04T19:47:28.290 | null | null | 19,561,449 | [
"node.js",
"reactjs",
"api",
"google-maps",
"next.js"
] |
75,638,244 | 2 | null | 75,632,705 | 0 | null | Algorithm:
```
- Loop over vertices
- If out degree zero add to sinks
- Loop over vertices
- If in degree zero
- Run Dijsktra starting from vertex
- Loop over sinks
- If sink reachable, add to sinks connected to source
- Add source and connected sinks to output
```
Implementation signat... | null | CC BY-SA 4.0 | null | 2023-03-04T19:43:48.070 | 2023-03-04T21:01:42.653 | 2023-03-04T21:01:42.653 | 16,582 | 16,582 | null |
75,638,264 | 2 | null | 75,638,121 | 0 | null | Python uses the `array.array` class to store the raw sample data for each file. In JS, you're using `Int16Array` which while correct, you're not creating an array to store the sample data for each file. Instead, you're pushing the same sample data for each file in the dir to the `raw_data_array` array.
You'll need to c... | null | CC BY-SA 4.0 | null | 2023-03-04T19:47:33.020 | 2023-03-04T19:47:33.020 | null | null | 16,867,873 | null |
75,638,260 | 1 | null | null | 3 | 29 | I am creating Django web-application using book.
But since I reached 20th chapter of the book, I started having problems.
I created a template, that displays all entries of the particular topic.
On the page we have entry title, date, a button to edit it, and of course its text.
Following the book, I use to make page... | How to align text or url in Django template? - Python Crash Course, Project "Learning Log" | CC BY-SA 4.0 | null | 2023-03-04T19:46:53.057 | 2023-03-04T20:21:02.937 | 2023-03-04T19:57:54.270 | 17,562,044 | 21,275,734 | [
"python",
"css",
"django",
"django-templates"
] |
75,638,255 | 1 | null | null | 1 | 49 | Hopefully you can help.
I am trying to groupby / resample based on criteria that I cannot find a solution to. I am looking to apply the quantile(0.9) function across the criteria below and group by a category.
The challenge I am facing is that there are overlaps in the ranges i.e.
Jan22 - Mar 22
Feb22 - Apr 22
Mar22 - ... | How can I perform group by operations on the last 3 months data (cumulatively) in Pandas? | CC BY-SA 4.0 | null | 2023-03-04T19:45:46.970 | 2023-03-05T02:07:33.480 | 2023-03-04T20:02:07.637 | 13,848,099 | 13,848,099 | [
"python",
"pandas",
"date",
"group-by"
] |
75,638,266 | 1 | null | null | -1 | 13 | Is there a good way to create a variable, function, class, etc. with the same name as a keyword?
What I usually see (and follow myself) is using slightly different names. For example, using `clazz` or `Class` instead of `class`.
But using a different name than what is desired feels very hacky and can sometimes be confu... | Variable with same name as keyword | CC BY-SA 4.0 | null | 2023-03-04T19:48:14.167 | 2023-03-04T19:59:51.280 | null | null | 20,558,255 | [
"naming-conventions",
"naming",
"conventions"
] |
75,638,262 | 1 | null | null | 0 | 28 | Im trying to arrive at the amount of days worked in a calendar month, over multiple weeks (in their own separate columns). The days are grouped by a week commencing date hence the challenge (any particular week could span across two different months). I have 2 different formulas which I would like to combine or replace... | How to sumif values (days worked) to each month, across a range of multiple weeks | CC BY-SA 4.0 | null | 2023-03-04T19:47:14.397 | 2023-03-04T19:47:14.397 | null | null | 21,333,018 | [
"excel",
"google-sheets",
"excel-formula",
"google-sheets-formula"
] |
75,638,267 | 2 | null | 75,637,768 | 0 | null | You should only `INSERT` `DISTINCT` rows, that are not in the main TABLE, which you can ensure with [EXISTS](https://docs.aws.amazon.com/de_de/redshift/latest/dg/r_exists_condition.html)
You should alos do that for the first query
```
BEGIN;
INSERT INTO Main (Usage, AccountId, Cost)
SELECT DISTINCT bd.Usage, ac... | null | CC BY-SA 4.0 | null | 2023-03-04T19:48:36.490 | 2023-03-04T19:48:36.490 | null | null | 5,193,536 | null |
75,638,265 | 2 | null | 75,638,024 | 0 | null | The quick answer is that the gold standard that will suit any scenario is 128 bits of randomness, and you should always use `Crypto.getRandomValues()`.
The [Birthday problem](https://en.wikipedia.org/wiki/Birthday_problem) describes the task of finding the probability of a collision.
Using the "square approximation" to... | null | CC BY-SA 4.0 | null | 2023-03-04T19:47:34.653 | 2023-03-04T19:47:34.653 | null | null | 8,656,811 | null |
75,638,268 | 1 | null | null | 0 | 10 | i am new and i need help; the below code for "Face mask Detection "
```
for row in transfer_learning_model.layers:
row.trainable = False
optimizer = Adam(lr=learning_rate, decay=learning_rate / epoch)
cnn.compile(loss="sparse_categorical_crossentropy", optimizer=optimizer,
metrics=["accuracy"])
history = cnn.fi... | ValueError: decay is deprecated in the new Keras optimizer | CC BY-SA 4.0 | null | 2023-03-04T19:48:40.780 | 2023-03-04T19:50:26.643 | 2023-03-04T19:50:26.643 | 5,460,719 | 21,333,141 | [
"python"
] |
75,638,271 | 2 | null | 75,638,073 | 2 | null | > ```
_hidObserver = Observable
.Interval(TimeSpan.FromMilliseconds(1000))
.SelectMany(_ => Observable.FromAsync(() => _hidIDevice.ReadAsync()))
```
The `Observable.Interval` sequence produces a value every second, each value is projected to an asynchronous operation, and each operation is started immediately.... | null | CC BY-SA 4.0 | null | 2023-03-04T19:49:08.453 | 2023-03-04T19:49:08.453 | null | null | 11,178,549 | null |
75,638,269 | 1 | null | null | 0 | 26 | Is SQL Server time sensitive? Does it matter whether the target database is in a different time zone from the data source? I am getting the following error for a SQL script that does not contain date or time. The error shows my time. But the database is Azure westus which is the day behind me.
Error:
```
Msg 241, Level... | Does time zone difference matter for inserting data into Azure SQL Database? | CC BY-SA 4.0 | null | 2023-03-04T19:48:44.487 | 2023-03-04T19:48:44.487 | null | null | 15,542,245 | [
"sql-server",
"azure-sql-database"
] |
75,638,275 | 2 | null | 75,638,054 | 0 | null | Simply use [df.plot](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.html):
```
df.plot()
plt.show()
```
Output:
[](https://i.stack.imgur.com/p9al6.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T19:49:38.933 | 2023-03-04T19:49:38.933 | null | null | 15,239,951 | null |
75,638,274 | 1 | null | null | 0 | 8 | I am using [@binance/connector](https://www.npmjs.com/package/@binance/connector) with express js. All method works. I have added my IP address to Binance api whitelist too. Except one method "payHistory" didn't work on EC2 server. I get an error while using this method. All other method works fine. The error I get is ... | Binance connector -Node js "TypeError [ERR_INVALID_HTTP_TOKEN]" problem when deploying on server | CC BY-SA 4.0 | null | 2023-03-04T19:49:36.500 | 2023-03-04T19:49:36.500 | null | null | 7,296,112 | [
"node.js",
"express",
"binance",
"binance-api-client"
] |
75,638,276 | 2 | null | 69,591,311 | 0 | null | The problem is most likely your browser. As of March 2023, this feature is only supported on three browsers (Chrome, Edge, Opera), and is classed as an experimental feature even on those.
See the API doc: [https://developer.mozilla.org/en-US/docs/Web/API/Window/showOpenFilePicker](https://developer.mozilla.org/en-US/d... | null | CC BY-SA 4.0 | null | 2023-03-04T19:49:52.177 | 2023-03-04T19:49:52.177 | null | null | 6,342,463 | null |
75,638,279 | 2 | null | 75,636,331 | 0 | null | The error message is self-explanatory: A function is a function that you pass as an argument to another function, and that will be called/executed later on after a certain event.
In your specific case, the `find` method doesn't accept anymore callback functions so you need to remove `function(err, foundItems)...` from... | null | CC BY-SA 4.0 | null | 2023-03-04T19:50:20.247 | 2023-03-04T19:50:20.247 | null | null | 20,576,394 | null |
75,638,272 | 2 | null | 75,638,200 | 2 | null | Like you have named your classes, you need to use a table layout. I have updated the HTML a little so you don't have to use the same link twice but the below can also work with your actual HTML
```
.table {
display: table;
width: 100%;
border: 1px solid #000;
border-bottom: none;
}
.tableRow {
display: table-... | null | CC BY-SA 4.0 | null | 2023-03-04T19:49:19.077 | 2023-03-04T20:51:22.280 | 2023-03-04T20:51:22.280 | 8,620,333 | 8,620,333 | null |
75,638,277 | 1 | null | null | 0 | 3 | I am following the tutorial at [https://learn.microsoft.com/en-us/azure/machine-learning/tutorial-pipeline-python-sdk](https://learn.microsoft.com/en-us/azure/machine-learning/tutorial-pipeline-python-sdk) to create a training pipeline. Instead of using a file from a web path, I am using a CSV saved at the same locatio... | Resubmitting AzureML training pipeline with new training data | CC BY-SA 4.0 | null | 2023-03-04T19:49:53.687 | 2023-03-04T19:49:53.687 | null | null | 6,439,634 | [
"azure-machine-learning-service",
"azureml-python-sdk",
"azure-ml-pipelines"
] |
75,638,280 | 2 | null | 75,636,089 | 0 | null | You are currently only passing the environment to the `setup-node` step. These values aren't persisted between steps.
If you meant these variables to be available in all steps of the job, move the `env:` section from the `step:` scope to the Job (`build:`) scope:
```
jobs:
build:
runs-on: ubuntu-latest
env:
... | null | CC BY-SA 4.0 | null | 2023-03-04T19:51:22.163 | 2023-03-04T19:51:22.163 | null | null | 736,079 | null |
75,638,286 | 2 | null | 1,353,253 | 0 | null | In CoCalc the Linux terminal are all collaborative. You can watch the other person type, you can also type, and there is a chat on the side for discussions. See [https://cocalc.com/features/terminal](https://cocalc.com/features/terminal) and also you can install [https://github.com/sagemathinc/cocalc-docker](https:/... | null | CC BY-SA 4.0 | null | 2023-03-04T19:53:02.150 | 2023-03-04T19:53:02.150 | null | null | 221,063 | null |
75,638,282 | 1 | null | null | -2 | 30 | Why is my sql code producing no output?
O/P-> [Execution complete with exit code 0]
I want to query the users on their id with a limit of say 10 users & want to find posts linked only to those users. The no. of posts per user should also be 10
```
-- create a table
CREATE TABLE users (
id INTEGER PRIMARY KEY,
name ... | Why is this sql query not giving an output? | CC BY-SA 4.0 | null | 2023-03-04T19:51:33.063 | 2023-03-04T20:53:35.323 | null | null | 20,881,651 | [
"sql"
] |
75,638,281 | 1 | 75,638,415 | null | 0 | 14 | I have a table that shows certain movies based on filters but I don't want the table to render the movies everytime the user clicks on a checkbox
this is my code for the table tbody that should be memoized
```
const Tbody = memo(({ pelis, generos }) => {
return pelis.length > 0 && generos.length > 0 ? (<tbody>
... | Using memo with a component that has an array.map and depends on an array of objects | CC BY-SA 4.0 | null | 2023-03-04T19:51:24.920 | 2023-03-04T20:16:50.217 | null | null | 12,253,380 | [
"reactjs"
] |
75,638,289 | 2 | null | 74,236,931 | 0 | null | I had a similar problem (I am starting on webdev/django). Problem was that one object inside the model I was trying to serialize was not serializable. Maybe take a look on that.
| null | CC BY-SA 4.0 | null | 2023-03-04T19:53:34.923 | 2023-03-04T19:53:34.923 | null | null | 4,621,488 | null |
75,638,287 | 1 | null | null | 0 | 7 | So if I've got say two groups a and b and a has values (4, 8, 2, 4, 2) and b has values (1, 5, 2, 8, 7) for time points 1, 2, 3, 4, 5 - how do I make a bar graph out of these values without having to clear my data set and make new variables?
Time will be the x axis and value will be the y axis.
| What is the simplest way to make a grouped bar graph where you can input your own values in Stata? | CC BY-SA 4.0 | null | 2023-03-04T19:53:15.747 | 2023-03-04T19:53:15.747 | null | null | 20,818,121 | [
"graph",
"bar-chart",
"stata",
"grouped-bar-chart"
] |
75,638,288 | 2 | null | 37,633,927 | 0 | null | None of the answers worked for me, but I found that adding `errors='replace'` to `open()` fixed it.
| null | CC BY-SA 4.0 | null | 2023-03-04T19:53:22.370 | 2023-03-04T19:53:22.370 | null | null | 14,695,391 | null |
75,638,290 | 2 | null | 75,638,060 | 1 | null | The error seems in how do you send the Json data to the server. `requests.get()` has an `json=` parameter, so you don't have to set HTTP headers and encode the payload manually.
Simply call
```
requests.post(dev_server + "/event", json={'name': event["name"]})
```
and `requests` will handle the details for you.
| null | CC BY-SA 4.0 | null | 2023-03-04T19:53:49.003 | 2023-03-04T19:53:49.003 | null | null | 10,035,985 | null |
75,638,292 | 2 | null | 75,637,353 | 0 | null | In this call:
> renv::load('~/venv/modelling/renv')
I believe you want to use this instead:
> renv::load('~/venv/modelling')
since the path supplied to `renv::load()` should be the project root, not the `renv` folder within the project.
| null | CC BY-SA 4.0 | null | 2023-03-04T19:54:02.900 | 2023-03-04T19:54:02.900 | null | null | 1,342,082 | null |
75,638,293 | 2 | null | 75,624,132 | 0 | null | Don't bother disconnecting after each Send().
```
using (var client = new SmtpClient ()) {
client.Connect (host, port, sslOptions);
client.Authenticate (username, password);
foreach (var message in messages)
client.Send (message);
client.Disconnect (true);
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T19:54:30.833 | 2023-03-04T19:54:30.833 | null | null | 87,117 | null |
75,638,273 | 1 | null | null | 0 | 9 | Let's say I have two lists `left` and `right` of size , each with unique integers, and I want to find the intersection and differences. This should be able to be done in or . This is how I instantiate the lists:
```
Integer n = 10_000
Integer overlap = (Integer) (0.1 * n)
List left = (1..n).toList().shuffled()
List r... | Why is the Groovy method minus() so slow with lists of numbers? | CC BY-SA 4.0 | null | 2023-03-04T19:49:20.463 | 2023-03-04T19:49:20.463 | null | null | 15,053,047 | [
"list",
"groovy",
"time-complexity",
"set-difference"
] |
75,638,294 | 1 | null | null | 0 | 11 | from the countries API I want to identify the 10 largests countries, already got the area values of these countries in the largest array but I want to reference the names of those cuntries in the object obtained from the API.
```
const countriesAPI = 'https://restcountries.com/v2/all'
let area = []
let names = []
let l... | How to get a value of an object referenced by another value | CC BY-SA 4.0 | null | 2023-03-04T19:54:30.943 | 2023-03-04T19:54:30.943 | null | null | 21,160,042 | [
"javascript",
"arrays",
"json",
"async-await",
"promise"
] |
75,638,284 | 1 | null | null | -8 | 28 | > import csv
import os
from datetime import datetimeload the pick up and return key datawith open('records.csv', 'r') as csvfile:
csvreader = csv.reader(csvfile)
next(csvreader) # skip the first line of the file (header)
records = list(csvreader)Function that loads the CSV file of key recordsdef load_records():
with op... | How to solve my problem with Python Code? | CC BY-SA 4.0 | null | 2023-03-04T19:52:36.280 | 2023-03-04T19:56:09.333 | null | null | 21,321,591 | [
"python"
] |
75,638,299 | 1 | null | null | -3 | 15 | The question I proposed seeks to explore these unconventional uses of stacks. It asks respondents to share examples of how they have utilized stacks in unique ways to solve real-world problems or to add value to their applications. This could include using stacks to implement complex data structures or algorithms, such... | What is the most creative or unconventional use of a stack data structure that you have seen or implemented in a real-world application? | CC BY-SA 4.0 | null | 2023-03-04T19:54:59.690 | 2023-03-04T19:58:21.117 | 2023-03-04T19:58:21.117 | 286,934 | 21,333,216 | [
"data-structures"
] |
75,638,295 | 1 | null | null | -1 | 17 | I am working on an object recognition program to recognize people, bicycles, cars, trucks, etc. on the street and put a box around them and label them. To do this I used this online model that I found: [https://github.com/IBM/MAX-Object-Detector#run-locally](https://github.com/IBM/MAX-Object-Detector#run-locally). Now,... | How to speed up code using machine learning object recognition model from online? | CC BY-SA 4.0 | null | 2023-03-04T19:54:31.533 | 2023-03-04T19:54:31.533 | null | null | 21,333,247 | [
"python",
"performance",
"machine-learning",
"computer-vision",
"object-recognition"
] |
75,638,298 | 1 | null | null | 0 | 19 | I have been working on a C project with a friend of mine. We are using the ncurses library when I try to compile the program I get these errors.
```
/usr/bin/ld: /tmp/ccMfDak4.o: warning: relocation against `stdscr' in read-only section `.text'
/usr/bin/ld: /tmp/ccMfDak4.o: in function `main':
Main.c:(.text+0x2a): unde... | Trouble with gcc not recognising ncurses in debian | CC BY-SA 4.0 | null | 2023-03-04T19:54:56.840 | 2023-03-04T20:02:31.347 | 2023-03-04T20:02:31.347 | 20,971,335 | 20,971,335 | [
"c",
"linux",
"ubuntu",
"debian",
"ncurses"
] |
75,638,297 | 2 | null | 75,638,211 | 0 | null | - The latest version of the setup-node action is v3.6.0; you can get that with `actions/setup-node@v3.0.6`, or if you're okay with minor versions being updated transparently, `@v3`. This'll get rid of the node12 warning.- The `build-push-action` action simply doesn't have any inputs for `username` or `password`; see th... | null | CC BY-SA 4.0 | null | 2023-03-04T19:54:50.620 | 2023-03-04T19:54:50.620 | null | null | 3,266,847 | null |
75,638,300 | 2 | null | 75,638,054 | 0 | null | I couldn't make your code work on my pc using python 3.11
```
df = pd.read_csv(
"temp_data.csv",
sep=";",
parse_dates={"datetime": ["year", "month", "day", "hour", "min", "sec"]},
date_parser=parser,
# index_col=0, this line was causing the problem
)
```
My plot wouldn't show as well, so I had to d... | null | CC BY-SA 4.0 | null | 2023-03-04T19:55:05.837 | 2023-03-04T19:55:05.837 | null | null | 4,979,317 | null |
75,638,303 | 2 | null | 75,638,185 | 0 | null | To improve the download speed and reduce the time it takes to transfer files from a remote shared drive using the pysmb library, you can try using a different port, increasing the buffer size, using multithreading, or using a different library such as pycifs, smbprotocol, or smb. You can also use a download manager lik... | null | CC BY-SA 4.0 | null | 2023-03-04T19:55:46.890 | 2023-03-04T19:55:46.890 | null | null | 21,333,214 | null |
75,638,285 | 2 | null | 75,637,472 | 0 | null | Your code produces plausible output on matrices of different sizes, but it uses triple-nested loops for swapping where a single loop is all that's needed. That's wasteful. It may not be too critical on small matrices, but it would become critical on significantly larger matrices.
You should also use a function to pri... | null | CC BY-SA 4.0 | null | 2023-03-04T19:52:39.640 | 2023-03-04T19:52:39.640 | null | null | 15,168 | null |
75,638,291 | 1 | null | null | 1 | 14 | I'm creating a React Native application, and I'm using [React Navigation](https://reactnavigation.org/) to navigate between screens. However, a part of my application is static (in my case, the main application bar, not related to the navigator) on the left. I'm using a [Native Stack Navigator](https://reactnavigation.... | React Navigation using a native stack navigator with a slide animation in a partial view | CC BY-SA 4.0 | null | 2023-03-04T19:53:55.197 | 2023-03-04T19:53:55.197 | null | null | 21,276,039 | [
"react-native",
"react-navigation",
"slide",
"android-transitions",
"react-navigation-stack"
] |
75,638,302 | 2 | null | 5,867,662 | 0 | null | In my case, I wanted to process the key.
Using the key preview of the webbrowser control helped:
```
webBrowserControl.PreviewKeyDown += OnWebBrowserPreviewKeyDown;
```
Doing so didn't require overriding `ProcessCmdKey` of the webbrowser control.
This approach doesn't work for + though.
| null | CC BY-SA 4.0 | null | 2023-03-04T19:55:42.350 | 2023-03-04T19:55:42.350 | null | null | 480,982 | null |
75,638,306 | 2 | null | 75,637,674 | 0 | null | Try to use the default `contentType`, what is ["application/x-www-form-urlencoded; charset=UTF-8"](https://api.jquery.com/jquery.ajax/).
Because you are passing only one parameter `Name` you can simplify the `data` parameter:
```
function createObject(x) {
$.ajax({
type: "POST",
url: "/Home/Tir... | null | CC BY-SA 4.0 | null | 2023-03-04T19:56:20.373 | 2023-03-04T19:56:20.373 | null | null | 6,630,084 | null |
75,638,307 | 2 | null | 75,638,220 | 0 | null | It looks like there is a syntax error in your code. In the following code block, you are referencing a variable called pic which is not defined anywhere in the code:
```
{pic ? (
<p>{email}</p>
) : (
<NavLink
to="/signin"
style={{ textDecoration: "none", width: "100%" }}
>
<Menu.Item
icon={<Logi... | null | CC BY-SA 4.0 | null | 2023-03-04T19:56:23.817 | 2023-03-04T19:56:23.817 | null | null | 4,817,557 | null |
75,638,309 | 1 | null | null | 1 | 29 | I am using the Material design Icons library for Vue.js.
This library contains a folder and every icon is a single file component in that folder.
I have another component, , that has a prop and I want to import component with name same as the passed prop.
Here's my code:
```
<template>
<button>
<MyIcon></M... | Can I import a component in Vue.js with path based on prop? | CC BY-SA 4.0 | null | 2023-03-04T19:56:48.483 | 2023-03-04T20:27:42.093 | null | null | 18,041,805 | [
"javascript",
"vue.js",
"vuejs3"
] |
75,638,308 | 1 | null | null | 0 | 9 | I'm a complete newbie to Flowbite Tailwind, so please don't assume any previous knowledge :)
I'd like a navbar with a purple gradient background.
There is no gradient background navbar example in the Components documentation. But there is a Solid background example. And, there is a gradient example of a Button. So I... | Flowbite Tailwind | Purple gradient background of navbar | CC BY-SA 4.0 | null | 2023-03-04T19:56:42.737 | 2023-03-04T19:56:42.737 | null | null | 21,333,209 | [
"tailwind-css",
"gradient",
"flowbite"
] |
75,638,301 | 1 | null | null | 1 | 16 | App.js
```
import './App.css';
import CreateBug from './CreateBug';
import { BrowserRouter as Route, Routes } from 'react-router-dom';
import Button from '@mui/material/Button';
import { useNavigate } from "react-router-dom";
function App(history) {
const navigate = useNavigate();
const handleOnClick = () => navig... | Im not able to route to another component | CC BY-SA 4.0 | null | 2023-03-04T19:55:24.457 | 2023-03-04T20:55:39.080 | 2023-03-04T20:41:40.283 | 8,690,857 | 20,352,980 | [
"javascript",
"reactjs",
"react-router",
"react-router-dom"
] |
75,638,315 | 1 | null | null | -7 | 21 | When i try to run any of my projects, it only lets me run it as a maven build, and not java. This randomly started happening.
I tried looking up how to fix it but nothing works.
| My java project only lets me run it in maven build | CC BY-SA 4.0 | null | 2023-03-04T19:57:44.843 | 2023-03-04T19:57:44.843 | null | null | 21,240,668 | [
"java",
"ellipse"
] |
75,638,314 | 2 | null | 75,637,099 | 1 | null | The OLED display is updated by sending commands and data over the I2C bus to the display controller chip. This takes some time, and if the program updates the display too quickly, it may not have enough time to finish updating before the next update cycle starts.
Try Increasing your delay to 5000ms, instead 1000ms.
> /... | null | CC BY-SA 4.0 | null | 2023-03-04T19:57:38.703 | 2023-03-04T19:57:38.703 | null | null | 11,385,320 | null |
75,638,313 | 2 | null | 75,638,260 | 2 | null | Try to wrap the `date` and `link` elements in a `div` element with a class name like `details_of_entry`, like so:
```
<div class="card-header">
{{ entry.title }}
<div class="details_of_entry">
<small>
{{ entry.date_added|date:'M d, Y'}}
<a href="{% url 'learning_logs:edit_entry' ... | null | CC BY-SA 4.0 | null | 2023-03-04T19:57:34.867 | 2023-03-04T20:06:09.133 | 2023-03-04T20:06:09.133 | 17,562,044 | 17,562,044 | null |
75,638,318 | 2 | null | 46,449,305 | 0 | null | Try:
```
val arr = Seq((1, (1,1)), (1, (2,2)), (2, (3,3)))
val rdd = sc.parallelize(arr)
rdd.
reduceByKey{ case (acc, t) => (acc._1 + t._1, acc._2 + t._2)}.
collect
// Array((1,(3,3)), (2,(3,3)))
```
| null | CC BY-SA 4.0 | null | 2023-03-04T19:58:11.073 | 2023-03-04T19:58:11.073 | null | null | 4,317,058 | null |
75,638,316 | 2 | null | 75,637,762 | 0 | null | I found the problem, but I do not know why this is a problem.
I had to change this line:
```
$response = $this->artisan("user:promote {$user->email}")->assertSuccessful();
```
To this:
```
$this->artisan("user:promote {$user->email}")->assertSuccessful();
```
For some reason, trying to capture the output into a respo... | null | CC BY-SA 4.0 | null | 2023-03-04T19:57:46.047 | 2023-03-04T20:01:49.303 | 2023-03-04T20:01:49.303 | 126,582 | 126,582 | null |
75,638,310 | 1 | null | null | 0 | 4 | In the OpenAPI specification, there is an `allowEmptyValue` property ([documentation](https://swagger.io/docs/specification/describing-parameters/#nullable)) that indicates a query parameter MAY be sent with no value. Their example given is
```
parameters:
- in: query
name: metadata
schema:
type: boolea... | How to define a query parameter in OpenAPI that must be empty or not present? | CC BY-SA 4.0 | null | 2023-03-04T19:57:10.163 | 2023-03-04T19:57:10.163 | null | null | 144,756 | [
"boolean",
"openapi"
] |
75,638,311 | 1 | null | null | 0 | 7 | To explain my program, I create an account on a site with a chrome profile then I close the driver. Then I reopen the created profile to connect to the automatic account with the session variables.
Here is my configuration for my driver
```
def setup_chrome_driver():
options = uc.ChromeOptions()
date = datetime... | Loss of session variables after exporting my selenium code (undetected_chromedriver) with pyinstaller | CC BY-SA 4.0 | null | 2023-03-04T19:57:18.217 | 2023-03-04T19:57:18.217 | null | null | 19,758,420 | [
"selenium-webdriver",
"pyinstaller",
"undetected-chromedriver"
] |
75,638,320 | 2 | null | 50,908,613 | 0 | null | Assembly language has many parts that work on every CPU, but there are certain things that are different for different CPUs, because assembly language communicates directly with a CPU (unlike high level programming languages). To understand why, one must understand CPUs.
CPUs have temporary storage that is used for pro... | null | CC BY-SA 4.0 | null | 2023-03-04T19:58:17.470 | 2023-03-04T21:17:08.753 | 2023-03-04T21:17:08.753 | 20,726,500 | 20,726,500 | null |
75,638,322 | 1 | null | null | 0 | 36 | In my Flutter application, I used a textform field on my `bottomNavigationBar`. But when the keyboard opens, it doesn't show. i used `resizeToAvoidBottomInset`, but it's not working.
[](https://i.stack.imgur.com/bPGiM.jpg)
[](https://i.stack.imgur.com/XOmuv.jpg)
my textfield in `bottomNavigationBar`:
```
bottomNavigati... | Flutter : Keyboard hides the textfield | CC BY-SA 4.0 | null | 2023-03-04T19:58:52.530 | 2023-03-05T04:10:44.467 | 2023-03-05T02:46:47.443 | 12,902,996 | 12,902,996 | [
"flutter",
"keyboard",
"hide",
"show",
"bottomnavigationview"
] |
75,638,323 | 2 | null | 75,638,092 | 2 | null | Run `ls -l /bin` and you will see it is a symlink to `/usr/bin`.
Since your `pwd` code (presumably using [getcwd()](https://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html)) doesn't know how you arrived in `/usr/bin`, it reports that name (the physical name for the directory) rather than `/bin` (the logi... | null | CC BY-SA 4.0 | null | 2023-03-04T19:58:55.233 | 2023-03-04T20:31:34.417 | 2023-03-04T20:31:34.417 | 15,168 | 15,168 | null |
75,638,312 | 2 | null | 75,636,130 | 0 | null | The TypeScript inference algorithm for [generic](https://www.typescriptlang.org/docs/handbook/2/generics.html) type arguments is effectively a set of heuristic rules which have been found to be useful in a wide range of real world code situations. The type checker tries to match two types, one of which contains some u... | null | CC BY-SA 4.0 | null | 2023-03-04T19:57:30.073 | 2023-03-04T19:57:30.073 | null | null | 2,887,218 | null |
75,638,324 | 1 | null | null | 0 | 13 | I'm using inkscape's CLI from node.js, this works already fine, I'v heard that this would be more performant if I was using the --shell parameter of inkscape so the idea is to leave a process open and just send commands whenever I want to execute them to the child.
I tried using spawn (this command does open an svg fil... | node.js send commands to non js child process shell | CC BY-SA 4.0 | null | 2023-03-04T19:59:21.677 | 2023-03-04T20:22:15.467 | null | null | 11,740,131 | [
"node.js",
"fork",
"spawn"
] |
75,638,325 | 1 | null | null | 0 | 5 | l am trying to find a way to represent a cut of a mesh ** M ** with a plane in order to execute optimization in order to find the best planar cut by minimizing a cost function based on the output of the cut and the 2 sub-meshes produced. Right now I am just sampling planes and evaluate the cost function but I would r... | Get close form equation of cutting 3D mesh with plane | CC BY-SA 4.0 | null | 2023-03-04T19:59:24.567 | 2023-03-04T19:59:24.567 | null | null | 10,620,342 | [
"slice",
"equation",
"intersect",
"plane"
] |
75,638,328 | 2 | null | 75,638,266 | 0 | null | One way to work around this is to use a slightly different name as you mentioned, such as appending an underscore or using a similar name. While this may feel hacky or less than ideal, it is a common and accepted practice in many programming communities.
However, in some programming languages, such as C#, it is possibl... | null | CC BY-SA 4.0 | null | 2023-03-04T19:59:51.280 | 2023-03-04T19:59:51.280 | null | null | 21,333,216 | null |
75,638,317 | 2 | null | 75,632,615 | 0 | null | It looks like you want to insert each document separately with a call to `CreateTxt`.
The document to be inserted is of type `TextParser` (perhaps the name `ParsedText` would be a better fit, since it is only a data object and not a parser).
After you have a slice of `Element`, you want to convert it to `ParsedText` an... | null | CC BY-SA 4.0 | null | 2023-03-04T19:58:01.813 | 2023-03-04T19:58:01.813 | null | null | 2,331,445 | null |
75,638,329 | 2 | null | 75,638,124 | -1 | null | > Reminder: I can't use sum() or min() and it has to be in one loop.
Okey dokey:
```
import math
def sum_without_smsallest(values):
for _ in None,:
return math.fsum(values) - max(values, key=lambda x: -x)
```
Or:
```
import math
import itertools
def sum_without_smsallest(values):
for _ in None,:
... | null | CC BY-SA 4.0 | null | 2023-03-04T20:00:00.597 | 2023-03-04T20:00:00.597 | null | null | 12,671,057 | null |
75,638,331 | 1 | 75,639,129 | null | -1 | 26 | The type-hinting of the method `sqlalchemy.engine.result.Result.fetchall()` suggests the method is supposed to return a `Sequence[Row[_TP]]` but when I print `print(type(result_1.fetchall()))`, I get a `list`.
[](https://i.stack.imgur.com/WAS2n.png)
Is there anything I'm missing?
My code is the following:
```
if __name... | SQLAlchemy returns `list` instead of `Sequence[Row[_TP]]` | CC BY-SA 4.0 | null | 2023-03-04T20:00:15.820 | 2023-03-04T22:42:34.893 | 2023-03-04T20:11:31.127 | 5,320,906 | 11,092,636 | [
"python",
"sqlalchemy",
"python-typing"
] |
75,638,327 | 1 | null | null | 0 | 17 | I'm using NestJS and would like to run the tests in my Gitlab pipeline, using Jest.
Problem: I get the error `sh: 1: jest: not found` when I use `npm run test`
My `gitlab-ci.yml`
```
image: node
stages:
- nest_build
- nest_test
- ... my other stages
cache:
paths:
- node_modules/
default:
tags:
- de... | Gitlab CI / CD - sh: 1: jest: not found | CC BY-SA 4.0 | null | 2023-03-04T19:59:44.023 | 2023-03-04T19:59:44.023 | null | null | 16,969,798 | [
"jestjs",
"nestjs",
"gitlab-ci"
] |
75,638,332 | 1 | null | null | 0 | 11 | [](https://i.stack.imgur.com/9ZTey.png)
in User parameters I have:
[](https://i.stack.imgur.com/qCWUV.png)
in User Defined Variables I have:
[](https://i.stack.imgur.com/A45T6.png)
In pre processor I have:
```
def varB = vars.get("varB");
def varA = vars.get("varA");
log.info(varB);
log.info(varA);
```
in post process... | Are User Parameters accesible by pre or post processors? | CC BY-SA 4.0 | null | 2023-03-04T20:00:26.280 | 2023-03-04T23:35:54.663 | null | null | 19,045,949 | [
"groovy",
"jmeter",
"jmeter-5.0",
"jsr223"
] |
75,638,334 | 1 | null | null | 0 | 22 | I'm not convinced I need Nx but every resource for Angular monorepo strategy seems to be "learn and setup Nx".
If I have an Angular Workspace with an `app` and a `lib` how could I add a Nestjs server to it so that the server has access to the lib?
1. Main goal is to have direct access to the lib
2. Can the entire repo... | Monorepo: Integrating Nestjs into an Angular Workspace | CC BY-SA 4.0 | null | 2023-03-04T20:00:54.263 | 2023-03-04T20:35:00.233 | null | null | 1,440,240 | [
"angular",
"nestjs"
] |
75,638,283 | 1 | null | null | 0 | 9 | So I have this automation test which I want to run against a local physical device to test the concept. The test is a C#/Selenium script thus
The device is a Galaxy Tab S 10 and UDB debugging is enabled and this device can be seen in Windows Explorer
[](https://i.stack.imgur.com/7Ped9.png)
And in Android Studio thus
[]... | C#/Selenium testing on a physical android device | CC BY-SA 4.0 | null | 2023-03-04T19:51:56.407 | 2023-03-04T19:51:56.407 | null | null | 674,718 | [
"c#",
"android",
"selenium-webdriver"
] |
75,638,337 | 1 | null | null | 0 | 24 | [enter image description here](https://i.stack.imgur.com/XOfFY.png)
Accidently I commit and push. Now some of my file gone. How can I get back these file using git command?
| I want to get back these folder | CC BY-SA 4.0 | null | 2023-03-04T20:01:24.220 | 2023-03-05T00:03:30.643 | null | null | 21,333,266 | [
"git",
"github"
] |
75,638,326 | 1 | null | null | -5 | 35 | I have a `table_3` that has been decomposed into `table_1` and `table_2`, as follows:
| food | kind | type |
| ---- | ---- | ---- |
| 2 | vegetable | carrot |
| 2 | vegetable | spinach |
| 2 | vegetable | carrot |
| 2 | vegetable | carrot |
| 2 | seafood | tuna |
| type | kind |
| ---- | ---- |
| carrot ... | SQL query using CHECK NOT EXISTS to check for anomalies in joined table | CC BY-SA 4.0 | null | 2023-03-04T19:59:37.613 | 2023-03-04T20:43:08.607 | 2023-03-04T20:43:08.607 | 5,179,643 | 5,179,643 | [
"sql"
] |
75,638,339 | 2 | null | 75,634,248 | 0 | null | You are using non-aggregate columns along with your aggregated columns. You need to fix you query as -
```
SELECT mfg.MMFG_MFGNAME AS MFGNAME,
count(case when sz.MCS_ID=1 then mtr.MTRM_SERIAL_NO end) AS count,
round((mtr.MTRM_METER_CHANGE_DATE-mtr.MTRM_INSTALLATION_DATE),2) as diff,
round((mtr... | null | CC BY-SA 4.0 | null | 2023-03-04T20:02:11.113 | 2023-03-04T20:02:11.113 | null | null | 3,627,756 | null |
75,638,338 | 1 | null | null | 0 | 6 | Following [Use the JavaScript API](https://developers.google.com/identity/gsi/web/guides/use-one-tap-js-api) guide, I implemented the login on my website. The only difference is I don't call google.accounts.id.prompt(); right after initialization. I moved that logic when user clicks on a Sign In button. When the button... | On clicking sign in button nothing happens | CC BY-SA 4.0 | null | 2023-03-04T20:01:48.323 | 2023-03-04T20:01:48.323 | null | null | 950,422 | [
"google-signin"
] |
75,638,341 | 2 | null | 75,637,853 | 1 | null | I have done this in the past by using a combination of `seaborn` and `matplotlib`'s polar projection. Here is an example:
```
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
n_data = 1000
data_phase = np.random.rand(n_data) * 1.2 * np.pi
data_amp = np.random.randn(n_data)
fig = plt.figure()
a... | null | CC BY-SA 4.0 | null | 2023-03-04T20:02:30.430 | 2023-03-04T20:06:44.213 | 2023-03-04T20:06:44.213 | 21,221,244 | 21,221,244 | null |
75,638,344 | 1 | null | null | -2 | 15 | I need some direction on how to validate two separate sets / groups of inputs on a page.
I have two sets of inputs,
Set1: fname, lname, email
Set2: addressline1, addressline2, postcode,
button1 should cause validation to set 1, and show error messages, or success
button2 should cause validation to set 2, and show error... | JQuery validation two sets of inputs | CC BY-SA 4.0 | null | 2023-03-04T20:03:17.000 | 2023-03-04T20:59:26.687 | 2023-03-04T20:59:26.687 | 519,413 | 21,333,261 | [
"jquery",
"validation"
] |
75,638,336 | 2 | null | 73,425,923 | 0 | null | If you use [Phoesion Glow](https://glow.phoesion.com), a framework designed specifically for creating microservices using dotnet, you can have inter-service communication with the [Internal Operation mechanism](https://glow-docs.phoesion.com/tutorials/Service_Interop.html).
Do accomplish this you need to
### 1. Create... | null | CC BY-SA 4.0 | null | 2023-03-04T20:01:18.343 | 2023-03-04T20:01:18.343 | null | null | 1,889,561 | null |