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,619,034
1
null
null
0
21
I have a google sheet table that has 4 columns, Name (of project), Email (of user), Year 1 (revenues), Year 2 (revenues). I would like to convert it into 4 columns: Name, Email, Year, Revenue so that I can put that data into Airtable or similar. [Before](https://i.stack.imgur.com/Z51XE.png) [After](https://i.stack.imgu...
Stacking Columns Vertically in Google Sheet
CC BY-SA 4.0
null
2023-03-02T17:41:55.910
2023-03-02T19:26:08.490
null
null
14,756,796
[ "google-sheets", "android-glide", "airtable" ]
75,619,031
2
null
41,401,009
0
null
Using Feign client I was facing this error, but the request was still failing. The main reason was that I had not specified url attribute and only specified the value attribute. Before correction ``` @FeignClient(value = "${url-value-in properties-files}", configuration = FeignConfiguration.class) ``` After Correctio...
null
CC BY-SA 4.0
null
2023-03-02T17:41:43.340
2023-03-02T19:10:33.490
2023-03-02T19:10:33.490
8,204,161
8,204,161
null
75,619,039
2
null
75,618,670
-1
null
``` if sequence := [i for i in range(10)]: sequence += [sequence[0]] ``` Keeping your format and objective, this will add first element of the list to the end.
null
CC BY-SA 4.0
null
2023-03-02T17:42:35.047
2023-03-02T17:42:35.047
null
null
20,959,773
null
75,619,032
2
null
47,017,812
0
null
I was also having the issue where `nvm use` would say it was using the version I asked it to switch to, but then `node -v` said nothing changed. For me, `which node` brought two paths back, which was weird, because the base paths were the same. My home directory is `/Users/stephene` ``` which -a node /Users/stephene/.n...
null
CC BY-SA 4.0
null
2023-03-02T17:41:54.880
2023-03-02T17:41:54.880
null
null
3,445,559
null
75,619,036
1
null
null
-5
19
I tried all the commands to solve this, but it still has an error. I'm using Laravel version 10 and Livewire in the same project; everything was fine, but I don't know how I got this error. > In PackageManifest.php line 178: The C:\work\school\My-Schooling\bootstrap\cache directory must be present and writable.
Error in Laravel 10 project - bootstrap cache directory must be writable
CC BY-SA 4.0
null
2023-03-02T17:42:07.467
2023-03-02T20:49:09.947
2023-03-02T20:49:09.947
633,440
20,164,680
[ "php", "laravel", "laravel-10" ]
75,619,038
1
null
null
0
5
How can I count distinct records in a query using an iif statement? something like this? `your text``SELECT joaccp,;`your text`SUM(IIF(b1wkno =1,b1qnty,0000000.00)) AS week1,;`your text`COUNT(iif(b1wkno = 1,custid,0) as custcnt;`your text`FROM wolf1;`your text`where b1vnbr =' 4102' ;`your text`GROUP BY 1;`your text`IN...
Select statement counting distinct records
CC BY-SA 4.0
null
2023-03-02T17:42:27.003
2023-03-02T17:42:27.003
null
null
19,233,354
[ "count", "distinct" ]
75,619,037
1
null
null
0
14
[https://github.com/swapan730/metrical](https://github.com/swapan730/metrical) this is the dashboard I use I need to use javascript for the sidebar in this dashboard to check the page urls during page load and set it active automatically, but I'm confused. my code is as follows ``` var url = window.location; const al...
metrical dashboard set sidebar auto open active by taking current url and checking href using javascript
CC BY-SA 4.0
null
2023-03-02T17:42:13.897
2023-03-03T05:13:56.603
null
null
20,685,150
[ "javascript", "html", "css", "sidebar" ]
75,619,045
2
null
75,618,993
0
null
`df["Date and Time"] = pd.to_datetime(df["Date and Time"], format="%Y %j %H")`
null
CC BY-SA 4.0
null
2023-03-02T17:43:14.487
2023-03-02T17:43:14.487
null
null
18,813,174
null
75,619,046
2
null
75,618,662
0
null
You can try this (only an example): ``` Manager.objects.filter(employee__in=qs).values('id', 'name').distinct() ``` It would give you a queryset of distinct `Manager` objects that have at least one related `Employee` object in the qs queryset, with only the `id` and `name` fields included.
null
CC BY-SA 4.0
null
2023-03-02T17:43:18.550
2023-03-03T05:21:42.220
2023-03-03T05:21:42.220
17,562,044
17,562,044
null
75,619,041
1
75,619,407
null
0
16
Everytime I plot stereograms using grid, the grid lines are spaced for every 30 degrees (like below). Is there a way to set grid lines every 10 degrees? I'm using `mplstereonet`´ It used to be every 10 degrees, as the examples shown in the github page [https://github.com/joferkington/mplstereonet](https://github.com/jo...
Change grid lines interval in mplstereonet
CC BY-SA 4.0
null
2023-03-02T17:42:50.053
2023-03-02T18:18:37.777
null
null
11,304,877
[ "matplotlib", "polar-coordinates" ]
75,619,047
2
null
75,587,754
0
null
It looks like you're debugging a .NET application. WinDbg was developed for native debugging. It needs an extension called SOS for debugging .NET. Usually, that extension is shipped with the .NET framework and ready to be loaded. Try `.loadby sos clr` to load it. You can then use `!clrstack` and `!dumpstack` to see the...
null
CC BY-SA 4.0
null
2023-03-02T17:43:22.157
2023-03-02T17:43:22.157
null
null
480,982
null
75,619,040
2
null
75,617,519
2
null
You can avoid casts (well, `is` is a cast, but not the old-school C# cast) and LINQ by using the enumerator itself. ``` protected override ValidationResult IsValid(object? value, ValidationContext validationContext) { if (value is not IEnumerable testObject) { return new ValidationResult("Collection obj...
null
CC BY-SA 4.0
null
2023-03-02T17:42:37.067
2023-03-03T23:05:06.323
2023-03-03T23:05:06.323
64,348
64,348
null
75,619,043
1
null
null
0
30
Im probably over thinking this but here it goes. So im trying to creat a user name based on a useres first inital and last name. Simple way of doing it. Given a list of names such as: ``` John doe Jane doe Alvin a-chipmunk Etc ``` I want it to be in all lower cast and skip the - in the last name, as well as if therw i...
Excel - Concatenation without "-"
CC BY-SA 4.0
null
2023-03-02T17:42:57.793
2023-03-02T19:29:51.293
2023-03-02T17:45:32.563
4,851,590
8,213,363
[ "excel", "if-statement", "conditional-statements", "concatenation" ]
75,619,049
2
null
75,618,658
1
null
Something like this perhaps? ``` select ISNULL(t.candidate_ref, tb.candidate_ref) AS candidate_ref , ISNULL(t.role_num, tb.role_num) AS role_num, tb.new_role_num , ISNULL(t.step, tb.step) AS step, ISNULL(t.action_date, tb.action_date) AS action_date , case when t.cnt = COUNT(tb.candidate_ref) OVER(PARTITION BY t.candi...
null
CC BY-SA 4.0
null
2023-03-02T17:43:37.693
2023-03-02T17:43:37.693
null
null
13,061,224
null
75,619,048
1
null
null
0
22
I need some help in snowflake where i need to convert a varchar to number type with 2 digits as a decimal values. Below is the sample input , the query i used and the out put i want. but unfortunately my query is not working as expected. Sample | Column1 | | ------- | | 000000006000 | | 000000010000 | | 0000000008...
How to convert varchar to TRY_TO_NUMBER with decimal in Snowflake
CC BY-SA 4.0
null
2023-03-02T17:43:27.873
2023-03-02T17:47:42.510
2023-03-02T17:44:57.310
5,070,879
15,488,631
[ "snowflake-cloud-data-platform" ]
75,619,030
1
null
null
0
43
Using SQL Server 2017, I have a table that has been working trouble free for years. I started getting random database lock-ups which appear to be due to a table lock being taken out on one particular table. I used a lock report which identified 7 locks on this SQL: `DELETE FROM WasteSchedule WHERE WasteScheduleId=@P` T...
Table taking out table lock on Delete using PrimaryKey value. It may be index corruption how can I fix this?
CC BY-SA 4.0
null
2023-03-02T17:41:40.250
2023-03-03T19:55:13.577
2023-03-02T17:50:41.517
18,745,848
18,745,848
[ "sql-server" ]
75,619,053
2
null
75,617,529
2
null
The string `"8"` encoded in UTF-8 is a single byte `0x38`, which is what you are sending (, I might add). That is why Wireshark is grouping it by itself. However, the byte sequence `00 00 00 38` does not represent a `"8"` UTF-8 string at all. It actually represents a 4-byte integer `56` in big endian format (ie, netwo...
null
CC BY-SA 4.0
null
2023-03-02T17:44:13.723
2023-03-02T17:44:13.723
null
null
65,863
null
75,619,050
1
null
null
0
10
I am using Hibernate validator in a REST API to validate database entities after getting parse from JSON. This works fine, however usually if one of the members of the object violates one of the constraints declared with hibernate validation, the response is an object containing a collection of constraint violations wi...
Why does Hibernate validator give different response formats for similar setups?
CC BY-SA 4.0
null
2023-03-02T17:44:02.527
2023-03-02T17:44:02.527
null
null
1,977,508
[ "java", "hibernate", "hibernate-validator" ]
75,619,035
1
75,619,512
null
0
18
I have a docker-compose.yml file in which I have three services, each being a python script that needs to be executed. Each service has a dockerfile - - - In a folder called "python_tools" I have three subfolders: - - - with each of them a file: main.py docker-compose.yml: ``` version: "3.1" services: scriptA: ...
Three docker containers with python image get mixed up in docker compose
CC BY-SA 4.0
null
2023-03-02T17:42:00.220
2023-03-02T18:30:10.183
2023-03-02T18:25:29.703
3,973,269
3,973,269
[ "python", "docker", "docker-compose" ]
75,619,058
1
null
null
0
6
We are using sockJs to initiate a Websocket connection in our client side javascript app. We are having an issue with a websocket request, initiated only from a specific client's machine. The request initiated via this machine doesn't contain below two headers. We expect these two headers to be initiated with the reque...
"Upgrade: websocket" header is removed from SockJs Websocket connection request, sent only from an specific user laptop
CC BY-SA 4.0
null
2023-03-02T17:44:29.367
2023-03-02T17:44:29.367
null
null
7,010,959
[ "websocket", "http-headers", "sockjs" ]
75,619,052
1
null
null
0
29
I Have a specific image: [](https://i.stack.imgur.com/E6kWQ.png) In this picture I try to detect the following lines reliable: [](https://i.stack.imgur.com/ZBZ3X.png) I tired to detect them with the following code: ``` def find_and_draw_lines(img): # convert to grayscale img = cv2.cvtColor(img, cv2.COLOR_BGR2GR...
Find Specific straight lines in image with Python and CV2
CC BY-SA 4.0
null
2023-03-02T17:44:06.717
2023-03-04T13:41:16.547
2023-03-04T13:41:16.547
2,602,877
11,837,611
[ "python", "opencv", "image-processing", "computer-vision", "straight-line-detection" ]
75,619,044
1
null
null
0
32
We have a large web application with several modules. In one of these modules, my goal is to use Microsoft Graph to collect some Sharepoint files, so the module can process them. Originally, I tried to set up Microsoft Graph on our web application, but getting the authentication and such to work turned out to be a head...
How do I integrate Microsoft Graph example into my .Net Core web application
CC BY-SA 4.0
null
2023-03-02T17:43:08.523
2023-03-03T06:08:39.913
2023-03-03T06:08:39.913
9,663,070
4,164,467
[ "c#", "asp.net-core", ".net-core", "sharepoint", "microsoft-graph-api" ]
75,619,051
1
null
null
0
25
I have tried different approaches but I cannot seem to get a fitted line on my plot per group. Plot ends up looking like the one on the attached photo ![enter image description here](https://i.stack.imgur.com/7ZCxY.png). This is my data ![My data](https://i.stack.imgur.com/GeUHC.png) ``` #first approach, did not work d...
Why do the fitted regression lines not appear per group on my scattered plot?
CC BY-SA 4.0
null
2023-03-02T17:44:04.440
2023-03-03T00:19:02.930
2023-03-03T00:19:02.930
469,680
21,320,971
[ "r", "ggplot2", "plot", "regression" ]
75,619,061
1
null
null
0
9
We use Keycloak and let users self-register to our app. We want to prevent users from using temporary emails. In order to do so, we intend on using a third-party service via API (such as [IsTempEmail](https://www.istempmail.com/user)). We would like to be able to make the API call, ideally from the backend, to validate...
Keycloak user validation check via API before user self-registration
CC BY-SA 4.0
null
2023-03-02T17:44:39.437
2023-03-02T17:44:39.437
null
null
2,659,466
[ "validation", "keycloak", "user-registration" ]
75,619,059
1
null
null
0
28
I am reading a file in a loop for parameters (input.txt) which has a encoded a string value and that encoded value will be decoded using the Powershell command however the Exclamatory "!" symbol is getting excluded after decoded. ``` @echo off setlocal EnableDelayedExpansion set input_file=%cd%\input.txt for /f "toke...
Exclamatory symbol (!) value is getting excluded return when decoding the string using powershell statement from batch script
CC BY-SA 4.0
null
2023-03-02T17:44:30.653
2023-03-03T20:52:41.007
null
null
20,911,719
[ "batch-file" ]
75,619,063
2
null
75,618,589
0
null
You have to set the cache mode in the page to "required" to maintain the content: In your mainpage.xaml: ``` <Page ... NavigationCacheMode="Required"> ``` Here the [documentation](https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.navigation.navigationcachemode?view=winrt-22621)
null
CC BY-SA 4.0
null
2023-03-02T17:45:04.580
2023-03-02T17:45:04.580
null
null
14,772,994
null
75,619,066
2
null
75,580,047
1
null
I on my case I can still assign a specific width to 'th' elements and it works (primeng v15.2.0). What happens to me is that for columns where I don't specify the width, prime calculate it and uses it based on the content of cells. It sounds great, but I have a paginator and every time I go to a different page it move ...
null
CC BY-SA 4.0
null
2023-03-02T17:45:25.127
2023-03-02T17:45:25.127
null
null
5,559,627
null
75,619,054
2
null
69,378,737
1
null
As mentioned earlier, Redpanda is API-compatible with Kafka, so the topic configurations available in Kafka can also be used in Redpanda. You can find the list of available topic configurations and their meanings in the Kafka documentation at [https://kafka.apache.org/documentation/#topicconfigs](https://kafka.apache.o...
null
CC BY-SA 4.0
null
2023-03-02T17:44:23.013
2023-03-02T17:44:23.013
null
null
11,496,570
null
75,619,067
2
null
75,614,289
2
null
The basic auth matcher will only do an exact equality check on the username and password - it's not possible to use matchers at this point. Another option you might consider is to implementing a `StubRequestFilter` extension that implements the rules you require. There's an example of this here: [https://github.com/wir...
null
CC BY-SA 4.0
null
2023-03-02T17:45:25.720
2023-03-02T17:45:25.720
null
null
1,008,361
null
75,619,064
1
null
null
0
7
Can someone help me with the following? I'm trying to copy the times from one sla response to another For example when an incident is created, 2 slas are created, a Response and a Resolution and when the incident is assigned to a group and a user, the Response normally changes to "complete" what I need to do is that wh...
Slas Response servicenow
CC BY-SA 4.0
null
2023-03-02T17:45:12.780
2023-03-02T17:45:12.780
null
null
21,320,975
[ "javascript", "html", "css" ]
75,619,070
1
null
null
0
23
While running the app on an android device it directly throws an error > - I verified every single line of code and double checked any of the possible syntax errors that might occur.
Good: How can I run app on android if its showing this error?
CC BY-SA 4.0
null
2023-03-02T17:45:38.513
2023-03-03T12:06:20.567
2023-03-02T17:56:21.297
20,287,183
21,320,926
[ "android", "flutter", "dart", "error-handling" ]
75,619,071
2
null
75,618,839
2
null
Group by `ID, Date` and check if `Value 1` or `Value 2` has same values in each group: ``` g = df.groupby(['ID', 'Date']) df['indicator'] = (g['Value 1'].transform(lambda x: x.nunique() == 1) | g['Value 2'].transform(lambda x: x.nunique() == 1)).astype(int) ``` --- ``` ID Date Value 1 Va...
null
CC BY-SA 4.0
null
2023-03-02T17:45:46.603
2023-03-02T17:45:46.603
null
null
3,185,459
null
75,619,060
2
null
75,266,412
0
null
The error log "libjvm.so: cannot open shared object file: No such file or directory" suggests that the Java Virtual Machine (JVM) may not be installed or configured properly on the AWS Lambda environment. To resolve this issue, you can try the following steps: 1. Ensure that the correct version of the JVM is installed...
null
CC BY-SA 4.0
null
2023-03-02T17:44:33.203
2023-03-02T17:53:05.980
2023-03-02T17:53:05.980
3,405,358
3,405,358
null
75,619,068
1
null
null
0
20
I am getting the bellow error. My resource is using self signed certificate. How do I disable SSL verification? ``` Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ...
How do I disable SSL verification in Spring OAuth2 resource server?
CC BY-SA 4.0
null
2023-03-02T17:45:25.730
2023-03-02T19:12:22.800
2023-03-02T19:12:22.800
5,277,820
5,285,644
[ "java", "spring", "spring-boot", "spring-security", "oauth-2.0" ]
75,619,075
2
null
75,616,280
0
null
One easy to manage option is to configure authorization like this, which enables anonymous routes to work, and all others to require a JWT: ``` private void ConfigureAuthorization(IServiceCollection services) { services.AddAuthorization(options => { options.FallbackPolicy = new AuthorizationPolicyBuilde...
null
CC BY-SA 4.0
null
2023-03-02T17:45:59.850
2023-03-02T17:52:51.950
2023-03-02T17:52:51.950
9,019,885
9,019,885
null
75,619,069
1
75,619,102
null
1
19
The Button class has a function parameter. But the function is triggered only if no parameter is passed. When trying to pass a parameter to a function, I get - Here is an example, when I try to pass the parameter to the function, I get an error. ``` import pygame import sys pygame.init() W, H = 800, 600 display =...
How to pass a parameter to a function from a button in Pygame?
CC BY-SA 4.0
null
2023-03-02T17:45:32.180
2023-03-02T17:56:13.780
null
null
21,320,731
[ "python", "pygame" ]
75,619,056
1
null
null
0
44
Here my HTML code and it is dynamic. So on my page when someone place comment it display and under comment section there is button called Reply, but when I am pressing that button it opens on the first comment, how can I make them open on each comment ``` <div class="comment-footer"> <button onclick="openForm()">Reply...
My modal form opens only on the first item
CC BY-SA 4.0
null
2023-03-02T17:44:24.737
2023-03-03T09:06:45.180
2023-03-03T09:06:45.180
17,890,767
17,890,767
[ "javascript", "html" ]
75,619,078
2
null
30,200,105
0
null
``` select choose((FLOOR(RAND()*3)+1) , 'Bill','Steve','Jack') ```
null
CC BY-SA 4.0
null
2023-03-02T17:46:35.417
2023-03-02T17:46:35.417
null
null
1,855,177
null
75,619,072
1
null
null
-3
41
I am using SQL Server Management Studio. Dbo.trans_detail ``` Charge_ID Adj_amt Create_timestamp --------------------------------------- 1 20 20200101 2 20 20200101 ``` Dbo.Charges ``` Charge_ID unit_price create_timestamp ------------------------------------------ 1 ...
SQL query that returns value based on create_timestamp
CC BY-SA 4.0
null
2023-03-02T17:45:46.970
2023-03-03T02:16:29.267
2023-03-03T02:16:29.267
3,404,097
18,424,561
[ "sql", "sql-server", "datetime", "inner-join" ]
75,619,077
2
null
75,618,467
0
null
Make return type `nullable` ``` Future<UserModel?> getUserById(String id) => firebaseFiretore.collection(collection).doc(id).get().then((doc) { if(doc.exist) { return null; } return UserModel.fromSnapshot(doc); }); ```
null
CC BY-SA 4.0
null
2023-03-02T17:46:33.057
2023-03-02T17:46:33.057
null
null
11,992,780
null
75,619,084
1
null
null
-1
34
I'm making a program in c# console. How can i make every new line start with a prefixed "<" without manually inserting it everywhere? every line should begin with: `<` I can't seem to figure out exactly how to.
Add a prefix to beginning of each line
CC BY-SA 4.0
null
2023-03-02T17:47:05.230
2023-03-02T18:16:51.333
null
null
20,906,947
[ "c#" ]
75,619,086
1
null
null
0
7
I'm unable to play the background sound in my code using Turtle module. I have the sound file in (WAV) format which is suitable for turtle, & have sound file in the same folder of python file(script) yet getting the window's default sound. have tried redownloading, restarting my IDE everything yet the issue isn't solve...
Unable play sound using python's Turtle module in windows 11
CC BY-SA 4.0
null
2023-03-02T17:47:16.533
2023-03-02T17:47:16.533
null
null
21,320,969
[ "python", "audio", "module", "turtle-graphics" ]
75,619,083
1
75,619,209
null
0
24
Why doesn't the counter increase every time I press the "increase" button? Console.log shows counter value not changing ``` import React, { useState } from 'react'; function Increase({ action }) { return ( <button onClick={ action }>increase</button> ); } function App() { const [ counter, set...
Why React state doesn't change when appending child nodes dynamically?
CC BY-SA 4.0
null
2023-03-02T17:47:03.353
2023-03-02T17:57:22.437
null
null
6,063,452
[ "javascript", "reactjs", "react-hooks" ]
75,619,079
2
null
75,618,725
0
null
Your code will parse the string , not by word. ``` sentence = "The quick brown fox jumps over the lazy dog." for word in sentence: # By character, not word ... ``` Use `.split()` to create an array delimited by whitespace. [https://www.w3schools.com/python/ref_string_split.asp](https://www.w3schools.com/python/ref_s...
null
CC BY-SA 4.0
null
2023-03-02T17:46:43.390
2023-03-02T17:46:43.390
null
null
8,278,075
null
75,619,090
1
null
null
-2
11
I am trying to implement special offers for Mondays and Tuesdays. I have four products that I do not want to display for the rest of the week. I appricate your efforts to compose a function that I can add to my child theme please. Thank you
Hide selected Woocommerce Products on certain days of the week
CC BY-SA 4.0
null
2023-03-02T17:47:38.600
2023-03-02T17:47:38.600
null
null
10,115,386
[ "woocommerce" ]
75,619,089
2
null
75,618,919
1
null
You can use this: ``` In [44]: from sympy import Matrix ...: x = Matrix([[1,2], ...: [3,4]]) ...: y = Matrix([[5,6], ...: [7,8]]) In [45]: l = [None]*4 In [46]: l[::2] = x.tolist() In [47]: l[1::2] = y.tolist() In [48]: Matrix(l) Out[48]: ⎡1 2⎤ ⎢ ⎥ ⎢5 6⎥ ⎢ ⎥ ⎢3 4⎥ ⎢...
null
CC BY-SA 4.0
null
2023-03-02T17:47:31.187
2023-03-02T17:47:31.187
null
null
9,450,991
null
75,619,087
2
null
75,618,645
0
null
Assuming ``` msgbox("Hello!") wscript.sleep(5000) msgbox("This appears in 5 seconds!") ``` is your input in the file, you can always use regex to match. Read the file line by line, ``` num = re.match(r"(wscript.sleep\()(\d+)",s)[2] n = str(float(num)/1000) ``` Then finally : ``` re.sub(r"(wscript.sleep\()(\d+)",lambd...
null
CC BY-SA 4.0
null
2023-03-02T17:47:21.620
2023-03-02T17:47:21.620
null
null
13,328,195
null
75,619,092
2
null
75,619,048
1
null
Using: ``` Select (TRY_TO_NUMBER(Column1)/100)::DECIMAL(10,2) FROM SampleTable; DESC RESULT LAST_QUERY_ID(); -- name type -- (TRY_TO_NUMBER(Column1)/100)::DECIMAL(10,2) NUMBER(10,2) ```
null
CC BY-SA 4.0
null
2023-03-02T17:47:42.510
2023-03-02T17:47:42.510
null
null
5,070,879
null
75,619,065
1
75,623,073
null
0
29
Imagine I have following four rows on a SQL database: | id | county | city | adress | price | datefrom | dateto | iscurrent | | -- | ------ | ---- | ------ | ----- | -------- | ------ | --------- | | 3 | PT | Lisbon | jack | 10000 | 2012-1-1 | 2022-1-10 | 0 | | 3 | PT | Lisbon | jack | 10000 | 2012-8-1 | null | 1 |...
check for null values on Data Flow Azure Data factory
CC BY-SA 4.0
null
2023-03-02T17:45:17.210
2023-03-03T12:02:57.893
2023-03-03T12:02:57.893
19,986,107
20,058,645
[ "azure-data-factory", "azure-data-flow" ]
75,619,091
1
null
null
0
55
``` struct moveonly{ moveonly(){} moveonly(moveonly&& o){} moveonly(const moveonly&)=delete; }; template<class Arg> void multi(const Arg&... in){} int main(...){ moveonly i,j,k; multi(i,j,k); } ``` doesn't compile, but putting `class...Arg` instead of `class Arg` in the template arguments makes i...
How to constrain a parameter pack to a single type?
CC BY-SA 4.0
null
2023-03-02T17:47:40.047
2023-03-02T18:05:42.917
2023-03-02T18:04:27.613
635,608
3,774,875
[ "c++", "c++20" ]
75,619,093
1
null
null
0
12
I've created a Pivot Table. I only want to keep the green bars showing the 'Yes' percentage. If I filter/deselect the 'No' then I'm left with the green bars but they all go to 100%. How do I keep only the green bars but maintain the percentages (52%, 50%, 63%, and 74%)? Thanks! [](https://i.stack.imgur.com/OOmHE.jp...
Excel Pivot Table - Keeping Specific Bars without Compromising Percentages
CC BY-SA 4.0
null
2023-03-02T17:48:00.287
2023-03-02T17:48:00.287
null
null
19,348,388
[ "excel" ]
75,619,088
1
75,619,988
null
0
29
I'm having an issue trying to corrently display the count of occurrences in a column fom a different table. I have a table all products: Product act_checking act_savings act_auto I need to find the count of each of those located in another table's column that has those products in comma-separated values: M0_List act_ch...
Count appearance of string in a comma-separated data column from another table
CC BY-SA 4.0
null
2023-03-02T17:47:23.950
2023-03-02T19:25:20.680
null
null
21,321,028
[ "powerbi", "dax", "measure" ]
75,619,094
1
null
null
0
22
I have a Next.js project deployed on Vercel. I have completed the integration of Sentry with Vercel as mentioned here in docs : [https://docs.sentry.io/product/integrations/deployment/vercel/](https://docs.sentry.io/product/integrations/deployment/vercel/) But when I see an error on Sentry, the stack trace looks someth...
Sentry not showing source map for Error in Next.js project deployed on Vercel
CC BY-SA 4.0
null
2023-03-02T17:48:02.617
2023-03-02T18:16:52.313
2023-03-02T18:16:52.313
2,984,488
2,984,488
[ "reactjs", "next.js", "vercel", "sentry" ]
75,619,095
1
null
null
0
7
I am trying to create a DataFrame with a 'Total' row with merged cells as my last row. I have this DataFrame: ``` | Id | Item | Quantity | Value | | 1 | box | 3 | 50 | | 1 | table| 6 | 20 | | 1 | cup | 9 | 10 | | 1 | ball | 2 | 150 | ``` And i want to add a 'total' row as t...
Add a 'Total' row with merged cells in pandas DataFrame
CC BY-SA 4.0
null
2023-03-02T17:48:02.723
2023-03-02T17:49:06.780
2023-03-02T17:49:06.780
21,320,940
21,320,940
[ "python", "pandas", "dataframe", "sum", "append" ]
75,619,101
1
75,619,202
null
0
24
I have a formula in one column ``` =IF(AND($B2+D2>2023,$B2+D2<=2122),($B2*2)+$A2,0) ``` and in the column beside it, the formula is ``` =IF(AND($B2+E2>2023,$B2+E2<=2122),($B2*3)+$A2,0) ``` I am hoping to modify the formula so that it automatically increases the multiplication value by 1 in every column I drag it over...
Excel formula with multiplication that increases by 1 for every column it is in
CC BY-SA 4.0
null
2023-03-02T17:48:41.580
2023-03-02T18:49:10.873
2023-03-02T18:49:10.873
3,894,917
7,687,273
[ "excel", "excel-formula", "autocomplete", "autofill" ]
75,619,096
2
null
75,615,456
0
null
To make it work out of the box you need to double-quote the string query param. ``` func main() { e := echo.New() u := "/foo?minPrice=0.99&maxPrice=9.99&searchQuery=\"abc+def\"" r := httptest.NewRequest("GET", u, nil) w := httptest.NewRecorder() c := e.NewContext(r, w) var in SearchInput if ...
null
CC BY-SA 4.0
null
2023-03-02T17:48:03.880
2023-03-02T17:48:03.880
null
null
965,900
null
75,619,104
1
75,619,190
null
-1
15
I might be using it wrong, but when I use the code below it only prints out a summary statement. Is there a way to save this output in a new variable? ``` data %>% mutate(motivation = case_when(DRG_WHY_TRY == 1 ~ 'experimentation' ,DRG_WHY_SLP == 1 ~ 'cope' ,DRG_WHY_RLX == 1 ~ 'cope' ,DRG_WHY_PAN == 1 ~ 'medical' ,DRG_...
When I am using casewhen() and mutate() it's not saving the new variable in the dataframe
CC BY-SA 4.0
null
2023-03-02T17:49:10.017
2023-03-02T18:04:20.920
2023-03-02T18:04:20.920
2,372,064
18,439,336
[ "r" ]
75,619,102
2
null
75,619,069
1
null
`sample(s)` immediately calls `sample` with the parameter `s` and the return value of the function (`None`) is passed to the `Button` constructor. You need to pass a function object to the constructor. Use a [Lambda](https://docs.python.org/3/reference/expressions.html#lambda) expression: `btn = Button('Button', 200, 5...
null
CC BY-SA 4.0
null
2023-03-02T17:49:00.577
2023-03-02T17:56:13.780
2023-03-02T17:56:13.780
5,577,765
5,577,765
null
75,619,098
1
null
null
-1
20
``` `Arr=[{ name:"example", createdAt: "2345" documents: [ {itemNo:20,itemLocation:'abc',itemOrderID:1}, //itemLocation abc equal with down {itemNo:30,itemLocation:'cba',itemOrderID:2}],//itemLocation cba equal with down user: [ {name:xyz,age:10}, ...
How to check if the array of objects contains same value for a specific key inside second level of array of object
CC BY-SA 4.0
null
2023-03-02T17:48:19.667
2023-03-02T17:53:23.463
2023-03-02T17:53:23.463
6,333,578
6,333,578
[ "javascript", "reactjs", "ecmascript-6" ]
75,619,074
1
null
null
0
26
EditProductScreen is used for both to update the existing product or to add new product, just difference is while updating product screen data is filled with initial values of existing product to update it. App is working properly to update the product but, throws error mentioned in title when I click button to add new...
type 'Null' is not a subtype of type 'String' in type cast | Flutter
CC BY-SA 4.0
null
2023-03-02T17:45:51.423
2023-03-02T18:21:25.263
null
null
21,227,517
[ "flutter" ]
75,619,103
1
75,619,247
null
0
17
Python/boto3 here. I have an S3 bucket with several "subfolders", and in one of these "subfolders" (yes I know there's no such thing in S3, but when you look at the layout below you'll understand) I have several dozen files, 0+ of which will be Excel (XLSX) files. Here's what my bucket looks like: ``` my_bucket/ Fi...
Filtering S3 shared key (subfolder) for specific file type in boto3
CC BY-SA 4.0
null
2023-03-02T17:49:06.777
2023-03-02T18:01:40.343
null
null
5,235,665
[ "python", "amazon-s3", "boto3" ]
75,619,106
2
null
75,615,618
0
null
You don't want to group by so you need SUM() OVER but you cannot nest window functions. so you need to create another level of SELECT. This works for your test case: ``` with data1 as (select 1 as bucket, 45 as value, 1 as add_dim, 1 as dim union all select 2 as bucket, 41 as value, 2 as add_dim, 1 as dim union ...
null
CC BY-SA 4.0
null
2023-03-02T17:49:20.440
2023-03-02T17:49:20.440
null
null
13,350,652
null
75,619,100
1
null
null
0
38
I have an application in .net core. the application was running fine, but the error started coming after I installed ``` dotnet add package Microsoft.AspNetCore.Authentication.Negotiate --version 6.0.14 ``` Once I installed this package and put this line of code in startup.cs file: ``` services.AddAuthentication(Negot...
System.IO.FileNotFoundException: 'Could not load file or assembly
CC BY-SA 4.0
null
2023-03-02T17:48:38.280
2023-03-02T18:52:36.310
2023-03-02T18:52:36.310
5,775,000
5,775,000
[ "c#", ".net", "asp.net-mvc", "asp.net-core" ]
75,619,076
1
75,619,555
null
4
46
## Preface There is a general rule for using grouping in SQL: If you want to reference a column in the select clause, you must either wrap it in an aggregation function, or you must include it in the group by clause. In understand this rule and the reasons for it. My question is about a special case where I think th...
When I group by a PK, all columns from that table have the same value in each group. So why does SQL Server require aggregation for those columns?
CC BY-SA 4.0
null
2023-03-02T17:46:11.637
2023-03-02T19:52:40.103
2023-03-02T18:48:34.723
18,645,485
18,645,485
[ "sql", "sql-server" ]
75,619,113
2
null
75,439,217
2
null
Today march 2, 2023, I've switched to the pre-release version of python extension and it works, sure it will be solved in next python extension version, for now, you can switch manually the extension version.[](https://i.stack.imgur.com/bWvP9.png)
null
CC BY-SA 4.0
null
2023-03-02T17:50:12.223
2023-03-02T17:50:12.223
null
null
11,817,310
null
75,619,111
2
null
75,524,344
0
null
To log the request headers in logQuery, you need to somehow pass the headers from the controller to the logQuery function. One way to do this is by using a closure that captures the headers when the controller is called and passes them to logQuery when the query event is triggered. You can try this ``` const create_Log...
null
CC BY-SA 4.0
null
2023-03-02T17:49:48.227
2023-03-02T18:05:52.777
2023-03-02T18:05:52.777
11,496,570
11,496,570
null
75,619,110
1
null
null
-2
19
I want my form submit to return an image of the cat chosen. It's not working. I feel like there is something wrong with the if else statement and/or the session Here is the link to my repl [MY REPL](https://replit.com/@SaraniiMuller/FLASK-PART-2?v=1) But here is the code as well ``` from flask import Flask, render_temp...
Hello, I have a flask assignment for class. I have to create a session and also do a form submit using get post
CC BY-SA 4.0
null
2023-03-02T17:49:47.477
2023-03-02T18:15:40.657
2023-03-02T18:15:40.657
21,321,034
21,321,034
[ "python", "flask", "flask-session" ]
75,619,114
2
null
75,618,919
0
null
Using `Matrix.vstack` and some slicing, ``` import sympy as sym from sympy import Matrix x = Matrix([[1,2], [3,4]]) y = Matrix([[5,6], [7,8]]) stacked = Matrix.vstack(x, y) result = Matrix.vstack(stacked[::2, :], stacked[1::2, :]) print(sym.pretty(result)) ``` outputs ``` ⎡1 2⎤ ⎢ ⎥ ⎢5 6...
null
CC BY-SA 4.0
null
2023-03-02T17:50:14.460
2023-03-02T17:50:14.460
null
null
11,082,165
null
75,619,118
1
null
null
0
5
I have a Nuxt 3 project using the Nuxt Image module, and want to fade in my images when they finished loading. The `nuxt-img` component does re-emit the `load` event, but I noticed that this event is not always emitted. After searching online I found out that this event is apparently not emitted when the image is pre-l...
How To Detect If Image Finished Loading When Using `nuxt-img`?
CC BY-SA 4.0
null
2023-03-02T17:50:29.347
2023-03-02T17:50:29.347
null
null
19,526,639
[ "javascript", "html", "image", "nuxt.js", "nuxtjs3" ]
75,619,119
1
null
null
-1
70
Here is `vector <struct>` that is returned from `func(): ``` struct mystruct{ int a; int b; }; std::vector<mystruct> func(int c, int d){ mystruct retval; retval.a = c; retval.b = d; std::vector<mystruct> structList; structList.push_back(retval); return structList; } ``` Here is how `f...
Assign the vector<struct> to return from function gives error "std::bad_alloc" in C++ 98
CC BY-SA 4.0
null
2023-03-02T17:50:34.450
2023-03-02T19:55:50.607
2023-03-02T19:55:50.607
65,863
21,320,931
[ "c++", "function", "vector", "struct", "c++98" ]
75,619,105
2
null
69,841,244
0
null
I would suggest getting the`fields` or `updated fields` from `useFormContext` itself so that you can access the `form context` or `updated fields`. Here is `IncomeInfo` where you will append fields ``` import { useFieldArray, useFormContext } from "react-hook-form"; import { v1 as uuid} from "uuid"; export const Income...
null
CC BY-SA 4.0
null
2023-03-02T17:49:12.610
2023-03-02T17:49:12.610
null
null
9,510,616
null
75,619,109
1
null
null
0
14
On a Power BI page , the user selects a Month and expects to see any NEW Customers that have appeared this month . The criteria for a new customer is as follows : Has Revenue in current month No revenue in the last 23 months not counting the current month So for the current month , Say Feb 2023 this works perfectly wit...
YTD measure that checks individual Months
CC BY-SA 4.0
null
2023-03-02T17:49:46.753
2023-03-02T19:15:08.070
2023-03-02T19:15:08.070
19,042,379
1,113,251
[ "powerbi", "dax" ]
75,619,120
2
null
75,618,382
1
null
Looking at your graph, the primary commits are denoted as an `*` on the far-left. Any branches to the right represent parent commits. And merge commits (e.g., `Merge branch 'main' of https://github.com/[MyRepository] into main`) are a commit consisting of one or more parent commits. So, you can see that the commits `8a...
null
CC BY-SA 4.0
null
2023-03-02T17:50:38.723
2023-03-02T17:55:49.067
2023-03-02T17:55:49.067
250,168
250,168
null
75,619,121
2
null
75,611,791
0
null
So based on GeraldVersluis videos: ``` var image = await qrCode.CaptureAsync(); using (MemoryStream ms = new MemoryStream()) { await image.CopyToAsync(ms); // write the bytes out somewhere ... } ```
null
CC BY-SA 4.0
null
2023-03-02T17:50:50.893
2023-03-02T17:50:50.893
null
null
2,125,182
null
75,619,123
2
null
75,618,423
0
null
Figured it out. There were two issues both in the Sign-Up Component. First off all the emailAddress property was renamed to email as the type was mismatched with property. ``` const [registrationForm, setRegistrationForm] = useState({ ... email: '', ... }); ``` Secondly I wasn't inputting t...
null
CC BY-SA 4.0
null
2023-03-02T17:50:56.670
2023-03-02T17:50:56.670
null
null
17,117,044
null
75,619,127
2
null
75,615,248
2
null
After much searching around, I found that the anonymous login API uses some kind of a sign up method on firebase backend. At the same time, I saw a limit in firebase authentication settings, attaching the screenshot here [](https://i.stack.imgur.com/HwdGw.png) It was 100 by default and hence my load test failed after 1...
null
CC BY-SA 4.0
null
2023-03-02T17:51:07.880
2023-03-02T17:51:07.880
null
null
4,116,955
null
75,619,129
2
null
74,675,481
0
null
Change `permanent` value to `false`
null
CC BY-SA 4.0
null
2023-03-02T17:51:09.253
2023-03-02T17:51:09.253
null
null
3,778,845
null
75,619,115
2
null
75,618,167
1
null
is a directive used to include text from other files in compilation. It is the same as #include in 'c/c++'. There are essentially two forms: ``` `include "file.name" or `inclde <file.name> ``` The difference is in using of current directory for locating the file. Usually the +incdir+ or similar qualifiers tells the...
null
CC BY-SA 4.0
null
2023-03-02T17:50:15.530
2023-03-02T17:50:15.530
null
null
1,143,850
null
75,619,128
1
null
null
0
17
I am working on selecting checkboxes(2) randomly using selenium Python. After selection is done, I want to verify the number of checked checkboxes. How to do that? Below is my code: ``` checkboxes = driver.find_elements(By.XPATH, "//*[@type='checkbox']") print(len(checkboxes)) for x in range(2): opt = random.choice...
How to count the number of selected checkboxes in selenium python
CC BY-SA 4.0
null
2023-03-02T17:51:08.027
2023-03-02T18:46:45.647
2023-03-02T18:46:45.647
4,420,967
17,787,238
[ "python", "selenium-webdriver" ]
75,619,124
1
75,619,639
null
0
19
I would like to to plot several boxplots in one plot. There are three groups in my toy example. Group 1 has values of a different magnitude, but should be on the very left side on the plot. Then Group 2-3 should be appended on the x-axis and have a y-axis on the right hand side. I tried via `ax.twinx()`. However, this ...
how to plot several boxplot with disjoint x buckets
CC BY-SA 4.0
null
2023-03-02T17:51:01.687
2023-03-02T18:43:11.320
null
null
14,169,895
[ "matplotlib", "boxplot" ]
75,619,130
2
null
75,618,167
1
null
`include is a pre-processing directive that is just text in a file getting inserted at the point of inclusion. It is unaware of any SystemVerilog syntax. It is and injected into the stream of characters the compiler parses as SystemVerilog syntax. A `package` is a namespace containing declarations of variables, types ...
null
CC BY-SA 4.0
null
2023-03-02T17:51:20.943
2023-03-02T19:54:14.413
2023-03-02T19:54:14.413
2,755,607
2,755,607
null
75,619,131
2
null
71,018,797
0
null
But what is the solution to deny creating the Azure Subscription irrespective of trying to create the subscription programmatically or through the portal or through any possible ways? Even I tried the same way to deny the subscription creation with this policy: ``` "policyRule": { "if": { "field": "type", "in...
null
CC BY-SA 4.0
null
2023-03-02T17:51:21.647
2023-03-02T17:56:48.937
2023-03-02T17:56:48.937
11,782,302
11,782,302
null
75,619,136
2
null
75,618,376
0
null
Before the turtle moves, you should check if the distance it will move by will make go out of the border. It will be something like this: if turtle xcor() + distance to move is bigger than the coordinates of the border, randomize again. This needs to repeat 4 times for each border. If t.xcor() > ?, x.cor < ?, t.ycor() ...
null
CC BY-SA 4.0
null
2023-03-02T17:51:49.737
2023-03-02T17:51:49.737
null
null
21,275,501
null
75,619,135
1
null
null
0
11
I was looking into asp.net identity framework and how it works what I've read is that I cant create unique models (tables) and use the identity authentication with it. I just create a 'user' and use identity with it.. for example I have (student) and (doctor) tables each with their own relations and unique attributes a...
Use ASP.NET identity for multiple tables?
CC BY-SA 4.0
null
2023-03-02T17:51:47.370
2023-03-02T17:51:47.370
null
null
18,049,137
[ "asp.net", "authentication", "asp.net-identity" ]
75,619,125
1
75,619,173
null
0
38
I'm testing a piece of code where a the same Task should be executed in a for loop, with variables updated every cycle. ``` for (int j = 0; j < 6; j++) { _waitNextBatch++; Console.WriteLine($"{_waitNextBatch}"); BatchSensor bs = new BatchSensor { SensorName =...
Calling new Thread with parameters in for-loop
CC BY-SA 4.0
null
2023-03-02T17:51:03.883
2023-03-02T17:56:10.227
null
null
893,572
[ "c#", "multithreading", "for-loop" ]
75,619,122
1
null
null
0
18
i am trying to create a video player app for android, i am trying to add delete functon in my app, so can you tell me how to add this code in recyclerview adapter class, i dont know how to use resultLauncer in activity , please chechk the code :- ``` private lateinit var intentSenderLauncher: ActivityResultLauncher<Int...
How can the below code be integrated into a RecyclerView Adapter for deleting files?
CC BY-SA 4.0
null
2023-03-02T17:50:56.557
2023-03-02T17:50:56.557
null
null
20,317,930
[ "android", "kotlin", "kotlin-coroutines" ]
75,619,141
1
null
null
-2
16
I want to test a processor with a medium load, about 20 - 30% for a long period of time, I would like to make a python script for it but I have tried several ways and I can't, I can only stress the cpu at 100%, any help? thank you! import os import time while True: os.system("stress --cpu 2 --cpu-load 20 --timeout 300"...
I need stress test only at 20% of CPU
CC BY-SA 4.0
null
2023-03-02T17:52:05.637
2023-03-02T17:52:05.637
null
null
21,321,033
[ "stress-testing" ]
75,619,143
1
null
null
-4
14
On execution, this code repeatedly prints the same statement of 'Enter fen'. Here's the repository: [https://github.com/YashNarayan-thefirst/Chess_Engine/blob/main/Engine_V5.py](https://github.com/YashNarayan-thefirst/Chess_Engine/blob/main/Engine_V5.py) ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
How would I resolve this bug in my chess engine?
CC BY-SA 4.0
null
2023-03-02T17:52:07.383
2023-03-02T17:52:07.383
null
null
20,360,268
[ "chess", "python-chess" ]
75,619,137
1
null
null
0
17
How can I cleanly make a subset of my DataFrame, where my desired columns meet certain criteria? Take the following `DataFrame` as an example: ``` df = pd.DataFrame(data=[[0, 1, 2], [2, 3, 4], [4, 5, 6], [6, 7, 8]], columns= [...
Get subset of DataFrame where certain columns meet certain criteria
CC BY-SA 4.0
null
2023-03-02T17:51:51.657
2023-03-04T18:15:30.673
null
null
7,516,523
[ "python", "pandas", "dataframe", "filter", "mask" ]
75,619,144
1
null
null
0
18
When I try to access via the Laravel sail on the local environment using Tinker I get this error from MySQL: > SQLSTATE[HY000] [2002] Connection refused (SQL: select count(*) as aggregate from `users`... Same thing (with an error) if I try to use MySQL docker.
Laravel sail connection refused with mysql on localhost
CC BY-SA 4.0
null
2023-03-02T17:52:09.083
2023-03-03T15:37:57.703
2023-03-03T15:37:57.703
6,157,616
6,485,000
[ "mysql", "laravel", "laravel-sail" ]
75,619,148
2
null
44,155,652
0
null
In my case, after a hard reset, the device still showed me an exception: ``` Exception occurred while executing 'set-device-owner': java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device. ``` The cause was the SIM card inside... Put it off and restart...
null
CC BY-SA 4.0
null
2023-03-02T17:52:16.827
2023-03-02T17:52:16.827
null
null
4,116,652
null
75,619,149
2
null
58,251,873
0
null
Equally my issue was my localhost Web app wasn't running https which was causing the authentication to fail! You live and learn.
null
CC BY-SA 4.0
null
2023-03-02T17:52:22.447
2023-03-02T17:52:22.447
null
null
10,529,344
null
75,619,138
2
null
75,580,094
0
null
Try this solution, where moving the navigation path and UNUserNotificationCenterDelegate to the ObservableObject. ``` import SwiftUI struct Thing: Identifiable, Equatable, Hashable { var id: String = UUID().uuidString var value: String? } class NotificationManager: NSObject, ObservableObject { @Publi...
null
CC BY-SA 4.0
null
2023-03-02T17:51:57.367
2023-03-02T17:51:57.367
null
null
11,662,833
null
75,619,147
1
75,620,585
null
0
43
I am testing a scenario where devs create feature branches and push them into a dev branch (which is my compare branch). Once per week, we then merge dev into main, which triggers our CI/CD pipeline. My intention was that main and dev should always match up. However, currently main is showing ahead of dev. We don't wor...
What does it mean when one branch is ahead of another?
CC BY-SA 4.0
null
2023-03-02T17:52:11.847
2023-03-02T20:38:37.407
2023-03-02T19:28:34.703
2,464,865
2,464,865
[ "git", "azure-devops", "cicd" ]
75,619,139
2
null
75,605,184
2
null
One way is to set [xref](https://plotly.com/python/reference/layout/annotations/#layout-annotations-items-annotation-xref) with axes id instead of 'paper' so that titles can be left-aligned with respect to the x coordinate of the corresponding xaxis. Yet as mentioned by @Derek O, the tricky part is how to identify the ...
null
CC BY-SA 4.0
null
2023-03-02T17:52:02.890
2023-03-02T17:52:02.890
null
null
2,529,954
null
75,619,145
1
null
null
0
30
I am working with some linux servers (s1, s2, s3, s4) from azure. I am using ansible to run a script to check if a app is up. If this is not up, it should send a Slack notification to the user who is running this playbook saying that it is not ok. I have managed that by doing this: ``` - hosts: localhost gather_facts...
Ansible to slack notification
CC BY-SA 4.0
null
2023-03-02T17:52:09.727
2023-03-02T17:52:09.727
null
null
3,740,839
[ "ansible", "ansible-inventory" ]
75,619,152
2
null
75,618,167
1
null
The issue seems to one of visibility. The difference WRT visibility/access: - -
null
CC BY-SA 4.0
null
2023-03-02T17:52:59.297
2023-03-02T17:58:43.487
2023-03-02T17:58:43.487
899,862
899,862
null
75,619,151
1
75,619,272
null
0
22
I have this interface for an item: ``` interface IItem { id: string; name: string; description: string; note: string | undefined; type: string; sellable: boolean; buyable: boolean; usable: boolean; price: number | undefined; // <--- only undefined when both buyable and sellable are false usage: stri...
Can I use a condition to define a type in an interface?
CC BY-SA 4.0
null
2023-03-02T17:52:37.787
2023-03-02T18:04:19.147
2023-03-02T17:54:29.497
62,576
15,446,076
[ "typescript", "types", "interface" ]
75,619,156
2
null
75,607,788
1
null
You are only searching for `id=2`, so `mode = incrementing` doesn't really make sense for that `query`, as it will always append `ORDER BY ID ASC` to the query. If you always want to search for `id = 2`, and get constant updates for that row, then you probably want `mode = bulk` Or, at the very least, you cannot end th...
null
CC BY-SA 4.0
null
2023-03-02T17:53:10.023
2023-03-02T18:14:35.817
2023-03-02T18:14:35.817
2,308,683
2,308,683
null
75,619,154
1
null
null
0
21
I am learning R and want to know the difference between populating an empty list and an empty data frame. My required dataset will have 3 variables, with 51 observations each. Using empty list: ``` zscoremds <- list() for(col in names(mds_numbers)) { zscoremds[[col]] = zscore(mds_numbers[[col]]) } ``` is a 51x3 d...
Populating Empty List vs Empty Data Frame
CC BY-SA 4.0
null
2023-03-02T17:53:04.160
2023-03-02T18:11:43.577
null
null
16,590,720
[ "r", "dataframe" ]