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,621,963 | 2 | null | 75,621,846 | 0 | null | The text can be formatted more nicely using
```
my_var.set("\n".join(spell_info_list))
```
This will join the items with a newline. To stop the text overflowing, add the `wraplength` attribute to the `Label`
```
selected_spell_info = Label(frame_three, textvariable=my_var, wraplength = 500, justify = "left")
```
I've... | null | CC BY-SA 4.0 | null | 2023-03-02T23:52:44.873 | 2023-03-02T23:52:44.873 | null | null | 7,519,434 | null |
75,621,966 | 2 | null | 70,598,978 | 0 | null | I was able to solve this problem (already had the base tag) by deleting my project's `obj` folder and restarting Visual Studio.
| null | CC BY-SA 4.0 | null | 2023-03-02T23:53:44.293 | 2023-03-02T23:53:44.293 | null | null | 6,641,612 | null |
75,621,961 | 1 | null | null | 0 | 43 | the code below ia an array included few of Strings, which can be set 0 ot 1 by button's status. and each String (array element) control a led ON/OFF.
I have got: `Varray[3] = 1 and Varray[3] = dbcd;`
my question is how to get: `dbcd = 1 ;`
I have many buttons which controlled many leds, I like to have: button (A) pre... | how to assign a value to element of a String array? | CC BY-SA 4.0 | null | 2023-03-02T23:52:38.980 | 2023-03-03T16:49:29.833 | 2023-03-03T16:10:42.503 | 20,955,158 | 20,955,158 | [
"arduino"
] |
75,621,962 | 2 | null | 75,621,743 | 1 | null | Try this :
```
#!/usr/bin/env bash
sqlite3 ~/Library/"Application Support"/AddressBook/Sources/*/AddressBook-v22.abcddb<<EOF
.mode json
SELECT DISTINCT
ZABCDRECORD.ZFIRSTNAME [FIRST NAME],
ZABCDRECORD.ZLASTNAME [LAST NAME],
ZABCDPHONENUMBER.ZFULLNUMBER [FULL NUMBER]
FROM
ZABCDRECORD
LEFT JOIN ZABCD... | null | CC BY-SA 4.0 | null | 2023-03-02T23:52:44.373 | 2023-03-04T12:55:22.057 | 2023-03-04T12:55:22.057 | 2,125,671 | 2,125,671 | null |
75,621,967 | 2 | null | 75,619,308 | 0 | null | Feels like it might be in the `componentDidMount`.
Can you try:
```
componentDidMount() {
const { myResourceModel } = this.props;
const { hasToRedirectAsCreated } = this.state;
console.log(myResourceModel);
console.log(hasToRedirectAsCreated);
if (myResourceModel && hasToRedirectAsCreated === myResourceMode... | null | CC BY-SA 4.0 | null | 2023-03-02T23:54:13.660 | 2023-03-02T23:54:13.660 | null | null | 2,407,460 | null |
75,621,969 | 2 | null | 74,243,849 | 0 | null | Swap the order of the links as follows:
```
const client = new ApolloClient({
link: ApolloLink.from([authLink, splitLink]),
cache: new InMemoryCache(),
});
```
Reference: [https://www.apollographql.com/docs/react/api/link/introduction/#the-terminating-link](https://www.apollographql.com/docs/react/api/link/int... | null | CC BY-SA 4.0 | null | 2023-03-02T23:54:47.873 | 2023-03-02T23:54:47.873 | null | null | 139,386 | null |
75,621,965 | 1 | null | null | 0 | 19 | I'm trying to test a link button in React Native. The link opens the url to an email server.
Using a custom component within a parent component named SupportScreen like so:
```
<LinkButton
title={email}
accessibilityLabel={supportEmail}
onPress={() => Linking.openURL(`mailto:${supportEmail}`)}
... | How to mock and test a mailto button | CC BY-SA 4.0 | null | 2023-03-02T23:53:11.327 | 2023-03-02T23:59:11.480 | 2023-03-02T23:59:11.480 | 62,576 | 10,239,403 | [
"react-native",
"jestjs",
"mocking",
"react-testing-library",
"mailto"
] |
75,621,968 | 2 | null | 75,619,748 | 1 | null | I was getting the error message "The controller for path '/react/bar.js' was not found or does not implement IController" when trying to access a file on an ASP.NET server, it's because the routing engine is looking for a controller to handle the request, but no controller is defined for the requested path.
In an ASP.N... | null | CC BY-SA 4.0 | null | 2023-03-02T23:54:34.800 | 2023-03-02T23:54:34.800 | null | null | 7,310,925 | null |
75,621,972 | 1 | null | null | 0 | 30 | I have quite heavy pod in terms of resources it uses in my development k8s cluster. Because I don’t want to use more resources for another replica (it is development environment after all and I don’t want to generate too much costs) I want only one replica. But it would be great on the other hand to avoid downtime in s... | Prevent downtime with one pod replica only | CC BY-SA 4.0 | null | 2023-03-02T23:54:52.197 | 2023-03-03T01:20:03.870 | null | null | 9,223,556 | [
"kubernetes"
] |
75,621,973 | 1 | 75,622,375 | null | -1 | 32 | I have this (firing off 3 simultaneous network calls)
```
class GenerationViewModel: ObservableObject {
@Published var fetching1:Bool = false
@Published var fetching2:Bool = false
@Published var fetching3:Bool = false
func go() {
let service1 = Service(??) //what to pass here so that Service can updat... | How to update @Published variable in ViewModel from network code? | CC BY-SA 4.0 | null | 2023-03-02T23:55:33.127 | 2023-03-03T01:20:35.297 | 2023-03-03T00:02:28.623 | 56,952 | 56,952 | [
"swift",
"swiftui"
] |
75,621,970 | 2 | null | 75,621,942 | 2 | null | The lines
```
move $s4, $a0
move $s5, $a0
move $s7, $a0
```
are harmful.
According to [MIPS Assembly/Pseudoinstructions - Wikibooks, open books for an open world](https://en.wikibooks.org/wiki/MIPS_Assembly/Pseudoinstructions),
```
move $1, $2
```
means
```
add $1, $2, $0
```
and it will overwrite the regist... | null | CC BY-SA 4.0 | null | 2023-03-02T23:54:48.017 | 2023-03-03T00:07:40.450 | 2023-03-03T00:07:40.450 | 4,062,354 | 4,062,354 | null |
75,621,975 | 1 | null | null | 0 | 32 | Is it possible to get all `Polyline` or `Curve2D` in drawing with LineWidth = something? It is possible with the color but when I tried `Selection.Search(".Curve.Thickness = 1")` or `Width` or `VisibleWidth` or `LineWidth`, none returns an error but results in no result also.
I could use loop, however, as I posted in a... | How to filter the Selection with LineWidth Catia VBA? | CC BY-SA 4.0 | null | 2023-03-02T23:55:43.603 | 2023-03-02T23:55:43.603 | null | null | 4,491,190 | [
"vba",
"catia"
] |
75,621,974 | 1 | null | null | 1 | 12 |
# 1_initial_migration.js
## Deploying 'Calculator'
> transaction hash: 0xb214606988ee76e84ca853aa70eee13ee55ffc29eb2baecc20729f49e2255561
✖ Blocks: 52 Seconds: 758
*** Deployment Failed ***
"Calculator" ran out of gas (using a value you set in your network config or deployment
parameters.)
- -
Exiti... | Truffle Deployment failed | CC BY-SA 4.0 | null | 2023-03-02T23:55:34.280 | 2023-03-03T22:06:40.630 | null | null | 21,322,529 | [
"ethereum",
"blockchain",
"solidity",
"smartcontracts",
"truffle"
] |
75,621,978 | 2 | null | 75,613,601 | 1 | null | Here the problem
```
new ManagedAction(
session => {
return ActionResult.Success;
},
```
The lambda is used internally for a lot of string manipulation and file path building.
And name of this lambda (`action.Method.Name`) is something like `<<Main>$>b__0_0`. You can't build a valid filenam... | null | CC BY-SA 4.0 | null | 2023-03-02T23:56:34.770 | 2023-03-02T23:56:34.770 | null | null | 2,011,071 | null |
75,621,979 | 1 | null | null | -1 | 16 | I'm trying to make a game like flappy bird, but on mobile (iPad), the button won't stay down.
Here is what I have (just the button part):
```
<button class="btn btn--primary" onmousedown="accelerate(-0.2)" onmouseup="accelerate(0.05)">click</button>
```
I've tried many things but it won't work, I thought that if I cha... | Why won't my html buttons work on mobile how I want them too? | CC BY-SA 4.0 | null | 2023-03-02T23:56:46.607 | 2023-03-03T00:55:11.890 | 2023-03-03T00:55:11.890 | 214,143 | 21,322,490 | [
"html",
"css",
"iphone",
"ipad"
] |
75,621,958 | 1 | null | null | 0 | 25 | I have an Excel sheet that we manually segregates the total amount paid in there installments.
Like the example below:
| Customer no | Installment no | Installment Value | Total Paid | Inst Value Paid |
| ----------- | -------------- | ----------------- | ---------- | --------------- |
| XC005 | 1 | 350.00 | 1000.00... | Excel payment of installmenst deducting debit balance | CC BY-SA 4.0 | null | 2023-03-02T23:52:12.827 | 2023-03-04T13:50:06.823 | 2023-03-04T13:50:06.823 | 13,302 | 21,320,596 | [
"excel",
"payment"
] |
75,621,983 | 1 | 75,625,086 | null | 0 | 25 | I have an rest api `/api/example`
need to provide different json information for authorized and unauthorized users.
If I use the standard `middleware('auth:sanctum')` then the user who has the token will get the information, but the user without it will get the `401 Unauthorized`. With this approach, it is necessary to... | Laravel sanctum how to check token for all api requests? | CC BY-SA 4.0 | null | 2023-03-02T23:58:17.640 | 2023-03-03T09:06:18.070 | null | null | 9,587,132 | [
"laravel",
"laravel-sanctum"
] |
75,621,982 | 2 | null | 75,619,801 | 0 | null | You are selecting some tags and their attributes those are not covering all the visible text, instead you can invoke stripped_strings generator to extract all the visible text on the page.
```
#Extract all visible text from the HTML
visible_text = ' '.join(s.strip() for s in soup.stripped_strings)
#Initialize the tran... | null | CC BY-SA 4.0 | null | 2023-03-02T23:57:58.800 | 2023-03-02T23:57:58.800 | null | null | 12,848,411 | null |
75,621,964 | 2 | null | 75,621,894 | 0 | null | Your action code is invalid. You are missing a `description` field and you have to set your `default` value to a string
```
inputs:
tag:
required: false
description: "My image tag"
default: "11"
```
Also, if the input is required, you don't need the `default` value.
From the [documentation](https://do... | null | CC BY-SA 4.0 | null | 2023-03-02T23:53:09.657 | 2023-03-03T00:41:08.020 | 2023-03-03T00:41:08.020 | 5,078,746 | 5,078,746 | null |
75,621,988 | 2 | null | 35,359,969 | 0 | null | This problem had me stumped for a while too. In order to have the sqlite cursor return dicts for each row, so you can use things like `row["waocs"]`, you need to specify the row_factory. When connecting to the db, set the row_factory property of the connection:
```
conn = sqlite3.connect('database.db')
conn.row_facto... | null | CC BY-SA 4.0 | null | 2023-03-02T23:59:52.610 | 2023-03-02T23:59:52.610 | null | null | 192,221 | null |
75,621,981 | 2 | null | 75,620,098 | 1 | null |
## Fill Userform Textbox
- `LookAt``xlWhole`- `With Worksheets("retornos pendentes").Range("A1:A" & rowcount)``.Cells(foundcell.Row, 3)``A``.EntireRow``.Columns`
```
Private Sub txtdevoluçao_AfterUpdate()
Const WS_NAME As String = "retornos pendentes"
Const FIRST_CELL As String = "A1"
Const CLIENTEOP_CO... | null | CC BY-SA 4.0 | null | 2023-03-02T23:57:34.360 | 2023-03-02T23:57:34.360 | null | null | 9,814,069 | null |
75,621,986 | 2 | null | 75,621,095 | 0 | null | Your example is probably overly simple because you wouldn't need format at all to simply concatenate all the items. `''.join(list1)` would do the job.
If your format is more complex/irregular but you always have the same number of items in the list, you can use the format method with unpacking:
```
"{} : {} ... {}".f... | null | CC BY-SA 4.0 | null | 2023-03-02T23:59:28.407 | 2023-03-02T23:59:28.407 | null | null | 5,237,560 | null |
75,621,991 | 2 | null | 75,621,805 | 0 | null | Your `useEffect` is potentially overwriting the `completed` prop.
Try:
```
useEffect(() => {
const storedCompletedTasks = JSON.parse(localStorage.getItem("completedTasks")) || [];
setCompletedTasks((prevTasks) => [...prevTasks, ...completed, ...storedCompletedTasks]);
}, [completed]);
```
In this way, you're guara... | null | CC BY-SA 4.0 | null | 2023-03-02T23:59:57.860 | 2023-03-02T23:59:57.860 | null | null | 2,407,460 | null |
75,621,989 | 2 | null | 75,608,178 | 0 | null | As strange as it sounds I found that if I call the variable:
- `logdir=C:/logs/myapi.log`- `log.dir=C:/logs/myapi.log`- `log_dir=C:/logs/myapi.log``IllegalArgumentException: Could not resolve placeholder 'log_dir' in value "${log_dir}`- `MYAPI_log_dir=C:/logs/myapi.log``IllegalArgumentException: Could not resolve place... | null | CC BY-SA 4.0 | null | 2023-03-02T23:59:52.750 | 2023-03-02T23:59:52.750 | null | null | 3,453,898 | null |
75,621,993 | 2 | null | 75,620,579 | 0 | null | I'm not exactly sure what you are asking exactly. But let me try to answer.
if your requirement is to create a new Job using an existing Job there is a Copy From option when creation a new Pipeline.
[](https://i.stack.imgur.com/1wQYX.png)
If you want to programmatically create a new JOb you can use the following groovy... | null | CC BY-SA 4.0 | null | 2023-03-03T00:00:53.563 | 2023-03-03T01:22:18.417 | 2023-03-03T01:22:18.417 | 2,627,018 | 2,627,018 | null |
75,621,992 | 2 | null | 75,621,576 | 0 | null | The changes made to fix the issue of rowCount variable not being updated correctly and the output text file not being generated were based on waiting for the CSV file processing to complete before creating the output text file. This was achieved by creating a promise that resolves once the CSV file processing is comple... | null | CC BY-SA 4.0 | null | 2023-03-03T00:00:09.270 | 2023-03-03T00:00:09.270 | null | null | 19,020,781 | null |
75,621,995 | 2 | null | 75,621,433 | 0 | null | You can, the domain must be verified in both accounts and [you'll have to create a ruleset](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-receipt-rules-console-walkthrough.html) in each account with the recipient condition in each account that matches the two emails respectively.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:01:00.797 | 2023-03-03T00:01:00.797 | null | null | 92,837 | null |
75,621,984 | 2 | null | 75,621,721 | 1 | null | It's really helpful to provide example DML and DDL when you ask a question.
From your question I mocked some up for you:
```
DECLARE @trndatacore TABLE (CompanyID INT, trntypeid INT, trndatetime DATETIME, trnstatusid TINYINT, errorcodeid INT)
INSERT INTO @trndatacore (CompanyID, trntypeid, trndatetime, trnstatusid, er... | null | CC BY-SA 4.0 | null | 2023-03-02T23:58:52.473 | 2023-03-02T23:58:52.473 | null | null | 18,522,514 | null |
75,621,980 | 2 | null | 75,615,454 | 0 | null | If you will never need to freeze the dates (by, say, not running the script), consider just using a formula to always 'live' display the nearest dates. First, make sure your date cells are actually set with Format→Number→Date to be real dates and not merely a text string of numbers and slashes. Worth noting here that a... | null | CC BY-SA 4.0 | null | 2023-03-02T23:56:58.777 | 2023-03-03T12:18:40.090 | 2023-03-03T12:18:40.090 | 279,798 | 279,798 | null |
75,622,000 | 2 | null | 72,842,282 | 0 | null | You can use the Disassembly window in Visual Studio while debugging. See [Disassembly Visual Studio](https://stackoverflow.com/questions/59635231/disassembly-visual-studio)
| null | CC BY-SA 4.0 | null | 2023-03-03T00:02:11.567 | 2023-03-03T00:02:11.567 | null | null | 5,454,878 | null |
75,621,997 | 2 | null | 75,621,741 | 0 | null | Yep, it's possible to render custom children in selectize according to [this example](https://selectize.dev/docs/demos/email-contact).
Check out the key, you should be able to add an `<img>` tag in there. I made a little example of what I think you're asking for:
html
```
<div class="selectItem">
<span class="flag">... | null | CC BY-SA 4.0 | null | 2023-03-03T00:01:19.147 | 2023-03-03T00:50:33.497 | 2023-03-03T00:50:33.497 | 3,053,927 | 3,053,927 | null |
75,621,994 | 2 | null | 75,602,890 | 1 | null | The output of a Helm chart is plain text that happens to parse as YAML. Beyond some validation that the resulting document is in fact valid YAML, Helm does not parse and reserialize it; what you get is the actual output of the templates. Even without using YAML anchors you can see differences in inline block lists, ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:00:57.020 | 2023-03-03T00:00:57.020 | null | null | 10,008,173 | null |
75,622,003 | 1 | null | null | 1 | 13 | I want to use `IdleDetector` but Typescript has no types for it and say `Cannot find name 'IdleDetector'`, what can I do?
| Typescript cannot find IdleDetector | CC BY-SA 4.0 | null | 2023-03-03T00:04:12.497 | 2023-03-03T00:04:12.497 | null | null | 9,991,191 | [
"typescript"
] |
75,622,001 | 1 | null | null | -1 | 23 | I am trying to create a secure signature in Dart to add to a request header for a simple HTTPS GET request.
The signature is generated like that in js:
```
const signature = CryptoJS.HmacSHA256(timestamp + method + path, 'secret').toString(CryptoJS.enc.Hex);
```
I want to be able to achieve the same result in Dart, I ... | Generate Hmac256 signature in Dart | CC BY-SA 4.0 | null | 2023-03-03T00:02:17.920 | 2023-03-03T00:23:53.567 | 2023-03-03T00:08:45.910 | 8,721,205 | 8,721,205 | [
"flutter",
"dart",
"cryptojs"
] |
75,621,999 | 1 | 75,622,215 | null | 1 | 55 | Let's write a function compareRobots, that takes 2 robots and returns true, if only all the characteristics of both are the same. (the order is not important, only the keys and values).
Notes:
each robot has its own unique serialNo (do not check it when comparing)
properties can't have values of undefined and NaN.
```
... | Compare two objects (the order is not important, only the keys and values) | CC BY-SA 4.0 | null | 2023-03-03T00:02:03.507 | 2023-03-03T00:58:40.950 | 2023-03-03T00:03:50.717 | 21,249,262 | 21,249,262 | [
"javascript"
] |
75,622,002 | 1 | null | null | -2 | 33 | So I have a java backend and an angular frontend. The task is to load data from an api to html. There are 5 main apis and each api in turn has many environment URLs. So far I have created a method in java to multi-thread the environment calls, so that once an api is called, the env apis are called in parallel and so th... | How to parallelize "for loop" or "function call" in typescript | CC BY-SA 4.0 | null | 2023-03-03T00:03:50.963 | 2023-03-03T00:18:24.127 | null | null | 10,967,173 | [
"java",
"angular",
"typescript",
"multithreading",
"parallel-processing"
] |
75,621,996 | 1 | null | null | -1 | 23 | I would like to add an HTML snippet to a website that would display a button that would carry out two actions: create a PDF from a webpage that has fillable text fields; email the PDF.
Below is where I am at. The webpage is not captured. I also cannot center the button, get rid of 'focus' (shadow/border) or get the cor... | How to create a widget that will convert a webpage to a PDF then email it | CC BY-SA 4.0 | null | 2023-03-03T00:01:12.470 | 2023-03-03T02:49:49.660 | 2023-03-03T02:49:49.660 | 11,107,541 | 20,154,973 | [
"html",
"jquery",
"css",
"pdf"
] |
75,622,004 | 2 | null | 75,622,003 | 1 | null | You can add the following to your `global.d.ts`:
```
interface IdleDetector {
addEventListener(type: "change", listener: (this: IdleDetector, ev: { userState: "active" | "idle", screenState: "locked" | "unlocked" }) => unknown, options?: boolean | AddEventListenerOptions): void;
start(options: { threshold: numb... | null | CC BY-SA 4.0 | null | 2023-03-03T00:04:12.497 | 2023-03-03T00:04:12.497 | null | null | 9,991,191 | null |
75,621,985 | 1 | null | null | 0 | 11 | I'm recieving a MemoryError when connecting to a MongoDB Atlas database cluster using pymongo. It seems to be caused by implicit use of ffi.callback(). If it makes a difference, I'm using a M1 Macbook. Any ideas what could be causing this error?
3.9.13
```
Name: pymongo
Version: 3.11.4
Summary: Python driver for Mong... | pymongo.MongoClient() MemoryError ("Cannot allocate write+execute memory for ffi.callback()") | CC BY-SA 4.0 | null | 2023-03-02T23:59:07.817 | 2023-03-04T00:47:23.643 | null | null | 21,322,487 | [
"python-3.x",
"pymongo",
"cffi"
] |
75,622,005 | 1 | null | null | 0 | 28 | When trying to set up an endpoint that receives data as `application/x-www-form-urlencoded` and starts executing a Step Function, the best mapping template I could come up with was:
```
#set($body = {
"context": {
"proxy": {
"source_ip": "$context.identity.sourceIp",
"http_method": "$context.httpMetho... | What's the correct way of nesting objects in an API Gateway's mapping template? | CC BY-SA 4.0 | null | 2023-03-03T00:04:37.753 | 2023-03-03T22:10:58.543 | 2023-03-03T00:12:39.223 | 21,014,323 | 21,014,323 | [
"amazon-web-services",
"aws-api-gateway",
"velocity"
] |
75,622,009 | 2 | null | 75,621,293 | 0 | null | Just to provide some follow up, a broader examination of the concept suggests that it:
- -
In a case where the client parser is known and supports it (such as if you're using nanopb) then it could be a viable alternative. If you're trying to support a range of clients, however, it's not a good idea as it's hard to imp... | null | CC BY-SA 4.0 | null | 2023-03-03T00:05:09.177 | 2023-03-03T00:05:09.177 | null | null | 5,419,369 | null |
75,622,006 | 1 | null | null | 0 | 5 | When parsing data with telegraf we cant seem to correctly parse the following data:
```
[{"sensordatavalues":[{"value":"47.55","id":32258070244,"value_type":"P1"}, {"value":"28.48","id":32258070245,"value_type":"P2"}],"location":{"indoor":0,"id":10943,"country":"DE","latitude":"48.73753900000","altitude":"240.9","longi... | Problems with parsing JSON data with telegraf (JSON_v2) | CC BY-SA 4.0 | null | 2023-03-03T00:04:52.737 | 2023-03-03T00:04:52.737 | null | null | 20,849,900 | [
"json",
"influxdb",
"telegraf"
] |
75,622,014 | 2 | null | 75,619,752 | 0 | null | apparently it worked with the deprecated:
min-device-width
the problem was in the iframe itself and not in SCSS.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:06:53.163 | 2023-03-03T00:06:53.163 | null | null | 21,165,166 | null |
75,622,013 | 2 | null | 35,233,725 | 0 | null | ```
// Function to convert a base64 'data:...ssdd//' data Uri to arrayBuffer
function base64tobuffer(base64) {
return new Promise((resolve) => {
fetch(base64).then((response) => {return(response.arrayBuffer())})
.then((b)=>{
if(b.byteLength % 2 == 0) {
//console.log("The number is even."... | null | CC BY-SA 4.0 | null | 2023-03-03T00:06:35.607 | 2023-03-03T04:11:11.267 | 2023-03-03T04:11:11.267 | 5,067,761 | 21,322,574 | null |
75,622,012 | 2 | null | 73,864,261 | 0 | null | It appears that you're mixing up Apollo client package versions whilst importing. You could try rewriting `authLink` as follows:
```
import { setContext } from "@apollo/client/link/context";
const authLink = setContext((_, { headers }) => {
const token = AsyncStorage.getItem('token');
return {
headers: {
... | null | CC BY-SA 4.0 | null | 2023-03-03T00:06:09.187 | 2023-03-03T00:06:09.187 | null | null | 139,386 | null |
75,622,011 | 2 | null | 68,046,643 | 0 | null | I was having the same issue and I hope this example gives a little light. In my case, the problem was that I was setting the whole initialState keys (id, servings, bookmarks) conditionally. Among these; "bookmarks" gets defined later in the app (and it was the only one taken from localStorage).
```
const getLocalStorag... | null | CC BY-SA 4.0 | null | 2023-03-03T00:05:54.703 | 2023-03-03T00:05:54.703 | null | null | 15,641,835 | null |
75,622,016 | 2 | null | 75,607,368 | 0 | null | For me, it returns "en-us":
```
fun main() {
print(test().currentLanguageCode)
}
class test {
companion object {
private const val DEFAULT_LANGUAGE_CODE = "en-us"
}
val selectedLanguage: SelectLanguage? = null
val configManager: ConfigManager = ConfigManager()
val currentLanguageCode:... | null | CC BY-SA 4.0 | null | 2023-03-03T00:07:29.547 | 2023-03-03T00:07:29.547 | null | null | 3,590,155 | null |
75,621,990 | 1 | null | null | 0 | 36 | Take the example:
```
pd.DataFrame(
index=["r1", "r2"],
columns=["c1","c2","c3", "group_by"],
data=[
["v1",[{"x_title":"xt1","x_label":"xl1","y_title":"yt1","y_label":"yl1"},
{"x_title":"xt1","x_label":"xl1","y_title":"yt2","y_label":"yl2"},
... | Create 'children' rows in panda dataframe, based on unique values in a list of dictionaries | CC BY-SA 4.0 | null | 2023-03-02T23:59:54.313 | 2023-03-03T09:24:54.393 | 2023-03-03T00:03:30.623 | 16,940,676 | 16,940,676 | [
"python",
"pandas",
"dataframe",
"lambda",
"explode"
] |
75,622,015 | 2 | null | 75,618,476 | 2 | null | > @Thomas `<Child />` does what it supposed to do, but only once.
Like a car that only drives once to a destination and then stops working.
Nevermind.
The simplest way to "reset" this component then is to destroy it and create a new one ... by changing the `key`
```
const childKey = "" + React.useMemo(Math.random, [ani... | null | CC BY-SA 4.0 | null | 2023-03-03T00:07:20.163 | 2023-03-03T00:07:20.163 | null | null | 6,567,275 | null |
75,622,017 | 2 | null | 75,619,452 | 0 | null | Here's a one-step approach:
```
Sub FormatOutput()
Const NUM_PTS As Long = 8 'points per curve
Dim wb As Workbook, wsSrc As Worksheet, wsDest As Worksheet
Dim rngConcs As Range, rngData As Range, cDest As Range, col As Long
Dim rwDest As Range, r As Long, wellRow As Long, wellCol As Long
Set wb... | null | CC BY-SA 4.0 | null | 2023-03-03T00:07:39.947 | 2023-03-03T00:24:59.753 | 2023-03-03T00:24:59.753 | 478,884 | 478,884 | null |
75,622,021 | 2 | null | 75,621,849 | 0 | null | Thanks all for the helpful comments, and apologies for the terminology mixup on my part re: destructuring/spread.
It looks like my options are to either forgo the type-safety and leave my code how it is, or add my properties directly within if statements to gate behind some conditional logic if I want to keep the type ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:08:47.747 | 2023-03-03T00:08:47.747 | null | null | 1,676,675 | null |
75,622,007 | 1 | 75,626,594 | null | 0 | 69 | I started to work with API and got some problems that I'm not able to fix.
That's code related to my problem:
```
// MARK: - ProPlayerElement
struct ProPlayerElement: Codable {
let name, avatarfull, personaname: String?
let fantasyRole: Int?
let teamName: String?
enum CodingKeys: String, CodingKey {
... | Getting an empty variable from API parsing | CC BY-SA 4.0 | null | 2023-03-03T00:04:56.653 | 2023-03-03T13:29:28.960 | 2023-03-03T10:28:12.703 | 20,110,493 | 20,110,493 | [
"swift",
"api"
] |
75,622,022 | 2 | null | 75,621,999 | 0 | null | Something like that will do the trick:
```
const compare = (first, second) => {
let isEqual = true;
Object.keys(first).forEach((objKey) => {
if (objKey !== 'serialNo' && first[objKey] === second[objKey]) {
isEqual = false;
}
};
return isEqual;
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:08:49.663 | 2023-03-03T00:21:15.453 | 2023-03-03T00:21:15.453 | 3,572,156 | 3,572,156 | null |
75,622,019 | 1 | null | null | 0 | 18 | I'm running a Neo4j container with the GDS library installed using the following command:
> docker run --name testneo4j -p 7474:7474 -p 7687:7687 -v
/path/to/neo4j/data:/data -e NEO4J_AUTH=neo4j/12345678 --env
NEO4J_PLUGINS='["graph-data-science"]' -d neo4j:latest
On Linux, the query `RETURN gds.version()` works fine, ... | Why am I encountering an issue with the GDS library on a Neo4j Docker container on Windows, despite it working on Linux? | CC BY-SA 4.0 | null | 2023-03-03T00:07:51.500 | 2023-03-03T00:24:28.477 | 2023-03-03T00:24:28.477 | 974,731 | 17,323,128 | [
"docker",
"neo4j",
"cypher"
] |
75,622,024 | 1 | null | null | -1 | 10 | I have an older PC game that I want to modify the exe for. There are 4 strings in the exe that define the 4 starting characters on your team. It's possible to edit these strings and replace them with character names that are shorter than the existing character names, but not longer. Is there any way to have something e... | Overwrite String in exe with varying length | CC BY-SA 4.0 | null | 2023-03-03T00:09:56.450 | 2023-03-03T00:09:56.450 | null | null | 10,970,510 | [
"windows",
"exe"
] |
75,622,020 | 2 | null | 75,621,999 | 1 | null | You can use `Array#every` over the entries of one object, with a special case that doesn't compare values for the `'serialNo'` key.
```
const compareRobots = (r1, r2) => {
const entries1 = Object.entries(r1);
if (entries1.length !== Object.keys(r2).length) return false;
return entries1.every(([k, v]) => k === 'se... | null | CC BY-SA 4.0 | null | 2023-03-03T00:08:17.113 | 2023-03-03T00:08:17.113 | null | null | 9,513,184 | null |
75,622,025 | 2 | null | 75,621,812 | 1 | null | Your linked has no NULL Values instead it uses empty strings, if your original data has NULL you need to change the last WHERE criteria:
```
SELECT DISTINCT JobNo FROM Jobs
WHERE Status = 'New' AND Entered = '2023-01-01' AND Linked = ''
```
| JobNo |
| ----- |
| 12346 |
| 12351 |
[fiddle](https://dbfiddle.uk/0... | null | CC BY-SA 4.0 | null | 2023-03-03T00:09:56.617 | 2023-03-03T00:13:16.107 | 2023-03-03T00:13:16.107 | 7,607,190 | 5,193,536 | null |
75,622,008 | 2 | null | 71,044,540 | 0 | null | I ran into the problem in question and managed to solve it.
The thing that made me suspicious initially was the form of
```
struct promise;
struct coroutine : std::coroutine_handle<promise>
{
using promise_type = struct promise;
};
```
because `struct promise` in the `using` declaration is itself a valid standalon... | null | CC BY-SA 4.0 | null | 2023-03-03T00:04:59.887 | 2023-03-03T00:04:59.887 | null | null | 13,914,306 | null |
75,622,026 | 1 | 75,622,078 | null | 0 | 25 | How would I go about accomplishing this using Blazor?
I am using powershell to pull all active forwards from Microsoft Exchange, and I would like to display an icon with a different color if forward to both property is set. So if forward.SendToBoth equals true the oi-arrow-thick-right should be blue, if it is disabled ... | Change text color based on property in Blazor | CC BY-SA 4.0 | null | 2023-03-03T00:10:02.613 | 2023-03-03T00:25:22.763 | null | null | 6,032,164 | [
"c#",
"blazor"
] |
75,622,033 | 1 | 75,623,690 | null | 0 | 24 | Im reading through the apacheAGE extension and im having trouble understanding what does age_prepare_cypher() do. What does this function do and where do i find the definition?
| What does the age_prepare_cypher() in apacheAGE extension do? | CC BY-SA 4.0 | null | 2023-03-03T00:11:13.157 | 2023-03-03T06:08:37.077 | null | null | 21,206,479 | [
"postgresql",
"apache-age"
] |
75,622,027 | 1 | null | null | -1 | 13 | I'm evaluating a XGBoost classifier. I split the dataset into train and validation sets, perform a cross-validation with the model default implementation using the train set and compute the ROC AUC:
```
xgbClassCV = XGBClassifier()
kfold = StratifiedKFold(n_splits = 5)
auc = cross_val_score(xgbClassCV, x_train, y_train... | Why a roc auc score from a regular cross-validation is very different from a roc auc score after an hyperparameter tuning? | CC BY-SA 4.0 | null | 2023-03-03T00:10:12.740 | 2023-03-03T00:10:12.740 | null | null | 19,118,526 | [
"scikit-learn",
"prediction",
"cross-validation",
"hyperparameters",
"auc"
] |
75,622,029 | 1 | null | null | 0 | 7 | I have a legacy Windows Forms project that I want to build in our CI/CD pipeline. Specifically I want to
1. Use an SDK-Style csproj file rather than the legacy format.
2. Target net451 for now but someday also (multi)-target net48 and/or net6.0-windows.
3. Build it in our github pipeline which uses dotnet build, not ... | Windows Form with Resources file won't compile in dotnet build (CLI) targetting .Net 4.5.1 | CC BY-SA 4.0 | null | 2023-03-03T00:10:21.557 | 2023-03-03T00:10:21.557 | null | null | 14,633,998 | [
"c#",
".net-core",
"msbuild",
"resx"
] |
75,622,030 | 1 | null | null | 0 | 25 | In TypeScript 5, [the behaviour of Enums changed](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#all-enums-are-union-enums).
However, when I assign `string` values to the Color type instead of `int`s, the following code doesn't compile:
```
// Color is like a union of Red | Orange | Yellow | ... | TypeScript 5 enums | CC BY-SA 4.0 | null | 2023-03-03T00:10:28.510 | 2023-03-03T00:10:28.510 | null | null | 323,221 | [
"typescript"
] |
75,622,028 | 1 | null | null | 0 | 20 | Suppose I want to indepedently re-order each row of a matrix. Here is an example of that using `np.argsort()`:
```
>>> A
array([[88, 44, 77, 33, 77],
[33, 55, 66, 88, 0],
[88, 0, 0, 55, 88],
[ 0, 22, 44, 88, 33],
[33, 33, 77, 66, 66]])
>>> ind = np.argsort(A); ind
array([[3, 1, 2, 4, 0],... | Using numpy, what is a good way to index into a matrix using another matrix whose entry values are column numbers? | CC BY-SA 4.0 | null | 2023-03-03T00:10:18.223 | 2023-03-03T17:13:06.357 | null | null | 3,561 | [
"python",
"numpy",
"numpy-slicing",
"matrix-indexing"
] |
75,622,031 | 1 | null | null | 0 | 12 | I have the following table object below. I want to apply flex-wrap such that, if the text is too long (like the one highlighted below), the text element will be wrapped using flex-wrap.
[](https://i.stack.imgur.com/Jk6YQ.png)
So, I use this code:
```
<div className="mt-8 flow-root">
<div className="-my-2 -mx-4 overflow... | Unable to use two flex across two columns in a row in Tailwind | CC BY-SA 4.0 | null | 2023-03-03T00:10:48.963 | 2023-03-03T05:08:39.393 | null | null | 10,028,854 | [
"reactjs",
"tailwind-css"
] |
75,622,038 | 2 | null | 75,604,782 | 0 | null | Set width and height for the div container (can bee %) and button position to relative.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:12:20.820 | 2023-03-03T00:12:20.820 | null | null | 4,848,078 | null |
75,622,034 | 1 | null | null | 0 | 17 | I'm making a transition from Chrome to Firefox, but I'm having some trouble adjusting because I have been making a personal website for a while and the scrollbar CSS not fitting my design is just really bothering me
[Here's what the scrollbars look like between browsers](https://i.stack.imgur.com/oCDUR.png)
On the left... | How much can you customize the Scrollbar CSS in Firefox? | CC BY-SA 4.0 | null | 2023-03-03T00:11:17.130 | 2023-03-03T00:11:50.603 | 2023-03-03T00:11:50.603 | 20,826,897 | 20,826,897 | [
"css",
"google-chrome",
"firefox",
"scrollbar"
] |
75,622,035 | 2 | null | 66,279,930 | 0 | null |
```
enter code here
using Microsoft.SharePoint.Client;
using PnP.Framework;
using System.IO;
using System.Net;
...
try
{
string sSiteSP = txtSitioSP.Text;
string sUrlFile = txtUrl.Text;
string sUser = txtUsuario.Text + "@fnd.gob.mx";
string sPass = txtContrasenia.Text;
string sSave = txtFile.Tex... | null | CC BY-SA 4.0 | null | 2023-03-03T00:11:38.907 | 2023-03-03T00:11:38.907 | null | null | 21,322,590 | null |
75,622,039 | 2 | null | 75,622,001 | 0 | null | Usually on dart you should have a .pem file that contains the encryption in your assets folder then you can add it like that in your main.dart file like that :
```
void main() async{
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
ByteData data = a... | null | CC BY-SA 4.0 | null | 2023-03-03T00:12:43.880 | 2023-03-03T00:12:43.880 | null | null | 14,860,256 | null |
75,622,036 | 2 | null | 75,621,651 | 2 | null | I think Allan Cameron's answer clearly illustrates and solves the problem (brilliant solution!), but another potential approach is to adjust `make_chart()`, rather than `map()`, e.g.
```
library(tidyverse)
data('mtcars')
#Define x variables to iterate over
x_variables <- c("cyl", "vs", "am", "gear", "carb")
#Create f... | null | CC BY-SA 4.0 | null | 2023-03-03T00:11:45.357 | 2023-03-03T00:11:45.357 | null | null | 12,957,340 | null |
75,622,037 | 1 | 75,627,984 | null | 0 | 51 | If I write something like
```
data L t = Empty | L t (L t)
```
in haskell this type admits infinite lists like `L 1 (L 2 (L 3 (..)))` . Does an equivalent algebraic type definition in a strict language like ML also admit infinite lists? If so, is it a deficiency in the evaluation mechanism of the language that you can... | Meaning of a recursive data type definition in lazy vs strict languages | CC BY-SA 4.0 | null | 2023-03-03T00:12:00.600 | 2023-03-03T13:56:21.393 | null | null | 1,721,431 | [
"haskell",
"ml"
] |
75,622,041 | 1 | null | null | 1 | 6 | Supposed I register a Plugin Step to "Merge" of "account". Pic below.
How do I know what the Plugin context/target will provide me? Is there any documentation about what the Plugin context will provide for the different Messages you can register to?
[](https://i.stack.imgur.com/y900y.png)
| In a Plugin registered to the "Merge" Message - how do I know what will be provided in the Target etc? | CC BY-SA 4.0 | null | 2023-03-03T00:12:50.333 | 2023-03-03T00:12:50.333 | null | null | 1,985,648 | [
"dynamics-crm",
"microsoft-dynamics"
] |
75,622,040 | 2 | null | 75,621,694 | 0 | null | Give retry a param which shows it how many times it should retry
Definition for `count` in retry [RXJS documentation](https://rxjs.dev/api/operators/retry)
> The maximum number of times to retry. If count is omitted, retry will
try to resubscribe on errors infinite number of times.
```
.pipe(
switchMap(() => fetchD... | null | CC BY-SA 4.0 | null | 2023-03-03T00:12:46.837 | 2023-03-03T00:20:34.577 | 2023-03-03T00:20:34.577 | 11,374,183 | 11,374,183 | null |
75,622,032 | 1 | null | null | -2 | 30 | I'm starting to learn Ansible and I ran into this error:
```
TASK [install Python] **********************************************************
[WARNING]: Consider using the apt module rather than running 'apt-get'. If you
need to use command because apt is insufficient you can add 'warn: false' to
this command task or ... | Ansible: Failed to import the required Python library | CC BY-SA 4.0 | null | 2023-03-03T00:11:05.943 | 2023-03-03T00:11:05.943 | null | null | 12,485,499 | [
"ansible"
] |
75,622,044 | 2 | null | 75,621,923 | 0 | null | The code that removes two digits should not be inside the `if` block. Then you can make effective use of the `remove_two_digits` variable in generic code that's not specific to the `*` and `/` operators.
You also have lots of code that's duplicated between the `*` and `/` code. The only difference between them is how y... | null | CC BY-SA 4.0 | null | 2023-03-03T00:13:04.740 | 2023-03-03T00:13:04.740 | null | null | 1,491,895 | null |
75,622,046 | 2 | null | 75,621,903 | 0 | null | You can consder below using [HAVING MIN](https://cloud.google.com/bigquery/docs/reference/standard-sql/aggregate-function-calls#having_min)
```
SELECT ANY_VALUE(t HAVING MIN PARSE_DATE('%d/%m/%Y', date)).*
FROM sample_table t
GROUP BY t.col1;
```
[](https://i.stack.imgur.com/lYCFTm.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T00:13:32.660 | 2023-03-03T00:13:32.660 | null | null | 19,039,920 | null |
75,622,043 | 1 | null | null | 0 | 18 | Good evening!
I faced a problem with `copy.deepcopy()`. I wanted to copy a class which had `dict` self variable and got this result:
```
>>> import copy
>>> class A:
... a = {'a': 1}
...
>>> a = A()
>>> a.a
{'a': 1}
>>> b = copy.deepcopy(a)
>>> b.a
{'a': 1}
>>> b.a['a'] = 123
>>> b.a
{'a': 123}
>>> a.a
{'a': 123}
... | copy.deepcopy(): Class with dictionary copied improperly | CC BY-SA 4.0 | null | 2023-03-03T00:12:53.933 | 2023-03-03T00:21:18.907 | null | null | 12,901,068 | [
"python",
"python-3.x",
"deep-copy",
"python-class"
] |
75,622,051 | 2 | null | 75,620,112 | 0 | null | Try using `ls --color=never` option.
Also, many tools support `NO_COLOR` environment variable which you can set using:
```
import os
os.environ["NO_COLOR"] = "True"
```
| null | CC BY-SA 4.0 | null | 2023-03-03T00:14:28.047 | 2023-03-03T00:14:28.047 | null | null | 723,891 | null |
75,622,042 | 2 | null | 75,252,830 | 0 | null | Building on top Mark's second approach. I came up with the following interface file. I'm not sure if there would be leaks, just adding it here to seek comments.
```
%module example
%{
#include "example.h"
%}
// On input, do not require the list/size parameters.
// Instead, declare tmp variables and pass them by refere... | null | CC BY-SA 4.0 | null | 2023-03-03T00:12:52.457 | 2023-03-03T18:57:53.403 | 2023-03-03T18:57:53.403 | 420,157 | 420,157 | null |
75,622,047 | 2 | null | 75,621,812 | 0 | null | For your test you had no null values SO I set those up for a test as described.
```
;WITH jobs AS (
SELECT *
FROM ( VALUES
(12345,'2021-12-29',11135,'New'),
(12345,'2021-12-30',11135,'Cancelled'),
(12346,'2022-12-30',NULL,'New'),
(12346,'2023-01-01',NULL,'Cancelled'),
(12345,'2023-01-0... | null | CC BY-SA 4.0 | null | 2023-03-03T00:13:39.667 | 2023-03-03T00:13:39.667 | null | null | 125,981 | null |
75,622,055 | 2 | null | 24,007,518 | 0 | null | Below is an example (for of a basic Timer object created when a UIButton is pressed. It uses a closure to print the current timer value to the log and eventually calls invalidate() to stop and remove the Timer from the run loop.
```
@IBAction func startTimer(_ sender: UIButton) {
var runCount = 60 //for a 60 secon... | null | CC BY-SA 4.0 | null | 2023-03-03T00:15:21.580 | 2023-03-03T00:15:50.003 | 2023-03-03T00:15:50.003 | 21,288,521 | 21,288,521 | null |
75,622,054 | 1 | null | null | 0 | 8 | We have a dataset in which there were 3 arms (message 1, message 2, controls) and . I am using the "geepack" package in R to construct `geeglm` models that look like this:
```
outcome = Beta1x + Beta2x + other variables #(where Beta1 = message 1
#vs. controls, Beta2 = message 2 vs. controls)
`... | How to test two coefficients are simultaneously zero in GEE model in R | CC BY-SA 4.0 | null | 2023-03-03T00:15:13.423 | 2023-03-03T17:48:32.473 | 2023-03-03T17:48:32.473 | 469,680 | 20,940,193 | [
"r",
"coefficients"
] |
75,622,050 | 2 | null | 75,621,920 | 1 | null | Note that `dplyr` should be the latest version(ver 1.1.0).
```
library(ggplot2)
library(dplyr)
country <- c("Australia", "New Zealand", "New Zealand", "Australia", "Australia", "Australia", "UK", "UK", "UK", "UK", "New Zealand")
date <- c(2009, 2010, 2009, 2009, 2009, 2009, 2009, 2010, 2010, 2010, 2010)
dataframe <- ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:14:14.233 | 2023-03-03T00:24:05.510 | 2023-03-03T00:24:05.510 | 11,926,169 | 11,926,169 | null |
75,622,045 | 1 | null | null | -1 | 12 | i was experimenting with keras and made a simple ai model that should write some simple code, right now it has only been trained on the print function
as stated above, when i try to run the code it gives me something about errors in shapes that are incompatible
Here is my code:
```
import numpy as np
import tensorflow ... | Keras AI model giving errors about shape | CC BY-SA 4.0 | null | 2023-03-03T00:13:26.167 | 2023-03-03T00:13:26.167 | null | null | 20,903,575 | [
"python",
"keras",
"artificial-intelligence"
] |
75,622,052 | 1 | null | null | 0 | 17 | I have a hopefully a simple query.
Say I have 3 jobs :
- - -
which runs first in all branches, next I have a job (hidden job say .job4).
This job4 is extended by all my further jobs in pipeline (say job5, job6, job7, job8.....)
Back to my question:
Job4 needs to be dependent on job1, job2, job3 (needs) only when I am ... | gitlab dependent jobs using needs | CC BY-SA 4.0 | null | 2023-03-03T00:14:37.483 | 2023-03-03T08:05:11.530 | 2023-03-03T01:15:37.897 | 2,061,705 | 2,061,705 | [
"gitlab",
"yaml",
"gitlab-ci",
"cicd",
"gitlab-api"
] |
75,622,058 | 1 | null | null | 0 | 13 | HI all I have a power app that runs a flow to return some data.
```
Set(
DocNumber,
GetMaxNum.Run(
"",
Label_DocNumberPrefix.Text
).max_number
);
```
nothing special this will just return a number and it works fine.
However if I then try and use the below if statement I get invalid argument... | cant use a variable set by a power automate flow in an if statement | CC BY-SA 4.0 | null | 2023-03-03T00:15:45.447 | 2023-03-03T00:15:45.447 | null | null | 7,286,051 | [
"powerapps",
"power-automate"
] |
75,622,059 | 2 | null | 75,619,006 | 0 | null | Just in case this helps anyone with non-admin access trying to install more recent versions of dotnet and then use them in vscode
- - - -
Chris
| null | CC BY-SA 4.0 | null | 2023-03-03T00:15:59.793 | 2023-03-03T00:15:59.793 | null | null | 7,896,558 | null |
75,622,061 | 2 | null | 75,615,991 | 0 | null | You are thinking too hard. How about:
```
if pgrep Dialog
then
echo " yes app is running"
else
echo "no app is not running please check again"
fi
```
If you insist making it into a function:
```
function appRunning {
pgrep Dialog
}
if appRunning
then
echo " yes app is running"
else
echo "no app is... | null | CC BY-SA 4.0 | null | 2023-03-03T00:16:09.887 | 2023-03-03T00:16:09.887 | null | null | 459,745 | null |
75,622,060 | 1 | null | null | 1 | 46 | I have a .NET 6 API that uses `AddJwtBearer` to accept a JWT Access Token from the caller. The API is able to successfully accept/parse the access token, however I need to get additional user info from the OpenID Connect Authorization server. Is there no built-in way to do this with .NET 6 using the existing access tok... | .NET JwtBearer Authentication - Use Access Token to get ID Token | CC BY-SA 4.0 | null | 2023-03-03T00:16:03.733 | 2023-03-03T07:40:10.023 | null | null | 2,966,445 | [
"c#",
".net",
"jwt",
"openid-connect"
] |
75,622,053 | 1 | null | null | 0 | 33 | How can i get sorted data in array by "name" in categories where '_id = 63fe948a22009cbbba53b905'?
My sample data:
```
{
"_id": "63fe948a22009cbbba53b905",
"options": {
"sort": "manual"
},
"categories": [
{
"priority": 0,
"options": "manual",
"name": "... | FindOne and sort in array with Mongoose | CC BY-SA 4.0 | null | 2023-03-03T00:15:06.557 | 2023-03-04T17:56:48.810 | null | null | 7,057,546 | [
"javascript",
"mongodb",
"mongoose"
] |
75,622,064 | 1 | 75,623,767 | null | 2 | 27 | I am trying to plot bars and line in a single plot from the following data:
```
amount cost profit
64 22.915949 48.15697753
128 15.424979 56.41929322
256 9.473054 49.80545598
512 6.685107 96.8453052
1024 4.897494 56.82355225
```
So far I have come to the following plot:
[](https://i.stack.imgur.co... | Gnuplot bars and line in a single plot, where bars are equidistant | CC BY-SA 4.0 | null | 2023-03-03T00:16:46.223 | 2023-03-03T06:21:11.037 | 2023-03-03T00:59:34.710 | 1,990,748 | 1,990,748 | [
"gnuplot"
] |
75,622,062 | 2 | null | 75,617,804 | 1 | null | Here is a method that sorts three arrays of different types, based on the values in the first array. It allocates internally an `int[]` array, with size equal to the first array.
```
/// <summary>
/// Sorts three arrays, one contains the keys and the others contain
/// the corresponding items, based on the keys in the ... | null | CC BY-SA 4.0 | null | 2023-03-03T00:16:17.070 | 2023-03-03T00:16:17.070 | null | null | 11,178,549 | null |
75,622,066 | 1 | null | null | 0 | 17 | I want current brightness level after setting brightness auto mode. I changed screen brightness, but did not receive the changed brightness level value.
I use Async callable for receive changed brightness level in completed block, but not changed brightness level, exactly screen brightness is changed to auto level.
```... | How to listener brightness value after setting brightness auto mode in Android? | CC BY-SA 4.0 | null | 2023-03-03T00:17:41.387 | 2023-03-04T04:31:51.650 | 2023-03-04T04:31:51.650 | 7,799,462 | 21,247,634 | [
"java",
"android",
"brightness",
"screen-brightness"
] |
75,622,069 | 2 | null | 75,621,371 | 0 | null | `fetch` only speaks HTTP. Browsers will simply not allow you to interact with sockets that don't speak HTTP.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:17:57.373 | 2023-03-03T00:17:57.373 | null | null | 80,911 | null |
75,622,070 | 2 | null | 69,425,176 | 0 | null | I had this problem and found that during some updates it moves the java runtime to an app data folder on windows 10 under the name Sun/Java
| null | CC BY-SA 4.0 | null | 2023-03-03T00:18:04.097 | 2023-03-03T00:18:04.097 | null | null | 5,941,721 | null |
75,622,068 | 1 | null | null | 0 | 30 | I am trying to overwrite the tsk.Predecessors and/or dep.Path field value of a Task. Using the Predecessor for an example, my update field code is as follows:
- -
The referenced "tsk" value (and "dep" value below) have been Dimensioned for the Task and Predecessor Objects.
No matter what I do, the 'tsk.Predecessors' o... | MS Project VBA 'Predecessor' or Dependency.Path Fields Update Not Working | CC BY-SA 4.0 | null | 2023-03-03T00:17:44.597 | 2023-03-03T00:25:06.313 | 2023-03-03T00:25:06.313 | 62,576 | 1,908,386 | [
"vba",
"task",
"ms-project"
] |
75,622,065 | 2 | null | 74,927,711 | 0 | null | I am running into a similar issue. It doesn't matter about the page object on my end. When i run the test while showing browser I see that when page initially loads the state is default and not honoring storageState.json even though it appears that it's saving the state successfully when i check the file. In the test I... | null | CC BY-SA 4.0 | null | 2023-03-03T00:17:25.993 | 2023-03-03T00:21:12.980 | 2023-03-03T00:21:12.980 | 7,376,446 | 7,376,446 | null |
75,622,056 | 1 | 75,625,032 | null | 1 | 31 | I am trying to upgrade spring batch version 5.X with spring boot 3.0.2 and java 17 from spring boot version 2.7.3
I have a default batch config class and a custom job config class(ActivateTestJob).
DefaultBatchJobConfig.java
```
@Configuration
@EnableBatchProcessing
public class DefaultBatchConfig extends DefaultBatchC... | Issue during spring batch upgrade | CC BY-SA 4.0 | null | 2023-03-03T00:15:35.577 | 2023-03-03T09:07:35.283 | null | null | 21,283,528 | [
"java",
"spring",
"spring-boot",
"spring-batch"
] |
75,622,067 | 1 | null | null | 0 | 38 | I figured out that the error is being caused, because the user tries to access documents without being properly authenticated
the user isn't being presented with a login screen even though I set up this:
```
.onAppear {
guard model.auth.currentUser != nil else {
model.showingSignIn = true //... | How do I fix uncaught exception 'FIRInvalidArgumentException'? | CC BY-SA 4.0 | null | 2023-03-03T00:17:42.840 | 2023-03-03T07:29:55.200 | 2023-03-03T07:29:55.200 | 21,138,718 | 21,138,718 | [
"swift",
"firebase",
"firebase-authentication"
] |
75,622,073 | 2 | null | 68,489,808 | 0 | null | I solve it by restarting my MacBook. After restarting, all my extension pages load again. Perhaps is something related to M1 chip.
| null | CC BY-SA 4.0 | null | 2023-03-03T00:18:29.320 | 2023-03-03T00:18:55.590 | 2023-03-03T00:18:55.590 | 21,322,604 | 21,322,604 | null |