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,630,372 | 2 | null | 75,629,990 | 3 | null | Here is a variation of left_join:
```
library(dplyr)
df1 %>%
left_join(df2, by="CHR") %>%
filter(between(POS, start, end)) %>%
select(-c(start, end))
CHR POS Gene
1 10 4342 ABC1
2 20 100 JHT
3 22 5422 KLO
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:53:42.207 | 2023-03-03T17:53:42.207 | null | null | 13,321,647 | null |
75,630,373 | 2 | null | 75,609,048 | 0 | null | The situation you mentioned is valid only for " exit " . I'm talking about opening a transaction.
I mentioned using the "once per bar" feature as in the indicator.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:53:53.817 | 2023-03-03T17:53:53.817 | null | null | 21,314,649 | null |
75,630,368 | 2 | null | 75,619,675 | -1 | null | I will try to explain more here. I want to extract the values as explained below.
Example John from xml1 is exported and transformed to John in xml2 file
Example Peter from xml1 is exported and transformed to Peter in xml2 file
Example Paul from xml1 is exported and transformed to Paul in xml2 file
Example xml1:
```... | null | CC BY-SA 4.0 | null | 2023-03-03T17:53:07.297 | 2023-03-03T17:55:41.497 | 2023-03-03T17:55:41.497 | 18,691,666 | 18,691,666 | null |
75,630,361 | 1 | null | null | 0 | 16 | I've been delving into Shiny modules, and so far, everything has been going well. However, I'm having trouble manipulating inputIds that come from another module. Specifically, I want to use functions like shinyjs::disable to disable a button in one Shiny module by pressing a button in another module (same applies for ... | r shiny - communication of inputId between shiny modules in order to use shinyjs functions like disable/enable/toggle | CC BY-SA 4.0 | null | 2023-03-03T17:52:26.440 | 2023-03-03T17:52:26.440 | null | null | 19,944,952 | [
"r",
"shiny",
"shiny-reactivity",
"shinyjs",
"shinymodules"
] |
75,630,351 | 2 | null | 55,298,808 | 0 | null | Some good answers, but we're missing something obvious: [class attributes](https://docs.python.org/3/tutorial/classes.html)
```
class Credential:
role = 'rx'
def __init__ (...
# (... rest of class definition)
class AXL(Credential):
role = 'r'
def __init__ (...
# (... rest of class definition)... | null | CC BY-SA 4.0 | null | 2023-03-03T17:51:49.867 | 2023-03-03T17:57:31.247 | 2023-03-03T17:57:31.247 | 12,227,635 | 12,227,635 | null |
75,630,370 | 1 | null | null | 0 | 22 | I have a turns model that i want to create based off a card id and a user id, the user id is passed correctly, but the card id is nil.
This is the card turbo frame
```
<%= turbo_frame_tag "play_card_frame" do %>
<%= render "turns/form", turn: @turn, card_id: card.id %>
<% end %>
```
It renders the following form... | Create instance of a model remotely | CC BY-SA 4.0 | null | 2023-03-03T17:53:37.300 | 2023-03-03T17:53:37.300 | null | null | 17,977,489 | [
"ruby-on-rails",
"ruby",
"actioncable",
"hotwire-rails",
"turbo-frames"
] |
75,630,376 | 2 | null | 71,564,382 | 0 | null | I had the same problem during the join operation of two data sources in AWS Glue, and the column which was a common key in both tables had "string" datatype in one source and "int" in another
| null | CC BY-SA 4.0 | null | 2023-03-03T17:54:23.453 | 2023-03-03T17:54:23.453 | null | null | 6,081,551 | null |
75,630,378 | 2 | null | 75,630,277 | 1 | null | It appears that you have two `click_Yes` functions, of which the former is overridden by the latter. Simply change one of them to `click_No`.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:54:33.670 | 2023-03-03T17:54:33.670 | null | null | 21,305,238 | null |
75,630,379 | 1 | null | null | 0 | 13 | I'm trying to use the Java API in Kotlin to send a POST request with JSON data to Elasticsearch 8.x. I've set up my Elasticsearch client as follows:
```
val restClient = RestClient.builder(
HttpHost("localhost", 9200)
).build()
// Create the transport with a Jackson mapper
val transport: ElasticsearchTransport = R... | How to use the Java API in Kotlin to send a POST request with JSON data to Elasticsearch 8.x? | CC BY-SA 4.0 | null | 2023-03-03T17:54:38.297 | 2023-03-04T14:09:38.200 | null | null | 15,226,758 | [
"java",
"json",
"kotlin",
"elasticsearch"
] |
75,630,380 | 1 | null | null | 0 | 19 | I've added a .html-custom-data.json file that's referenced correctly in the vscode -> settings.json, as hovering over a custom web component in HTML will display the description, and + after the opening tag will include a list of possible attributes.
What I haven't figured out is how to get the Emmett / IntelliSense to... | How can I get Custom Elements / Web Component names to be suggested by VS Code's Emmett / IntelliSense? | CC BY-SA 4.0 | null | 2023-03-03T17:54:44.223 | 2023-03-03T19:46:09.607 | 2023-03-03T19:46:09.607 | 11,107,541 | 12,264,475 | [
"visual-studio-code",
"intellisense",
"web-component",
"custom-element",
"emmet"
] |
75,630,375 | 1 | null | null | 0 | 5 | [enter image description here](https://i.stack.imgur.com/2wBxo.png)
enter image description here
code description as follows
:
```
<aura:attribute name="buttonLabel" type="String" default="Create Scheduled Service" description="Label for the button 'createScheduledService'"/>
<lightning:button aura:id="createScheduled... | change the name of "create schedule service" to "reschedule service" if the service has been scheduled in AURA | CC BY-SA 4.0 | null | 2023-03-03T17:54:22.343 | 2023-03-03T17:54:22.343 | null | null | 19,640,941 | [
"salesforce-lightning",
"lwc"
] |
75,630,377 | 2 | null | 31,770,297 | 0 | null | Extending does not work with `final` classes.
`class_alias` is a better option.
```
function assert_true(bool $actual) {
if ($actual !== true) {
echo "ERROR: Expected true", PHP_EOL;
echo (new \AssertionError("Expected true"))->getTraceAsString(), PHP_EOL;
return;
}
echo "Valida... | null | CC BY-SA 4.0 | null | 2023-03-03T17:54:29.260 | 2023-03-03T17:54:29.260 | null | null | 465,590 | null |
75,630,382 | 2 | null | 75,630,276 | 1 | null | For this use case, try using Postman and configure it to pass JSON to the API Gateway endpoint. The API Gateway endpoint passes the JSON to the Lambda function. So in my example here, I have configured an API Gateway endpoint that accepts a PUT request and accepts JSON that specifies a file name.
The Lambda function ge... | null | CC BY-SA 4.0 | null | 2023-03-03T17:54:46.427 | 2023-03-03T22:02:13.537 | 2023-03-03T22:02:13.537 | 1,435,543 | 1,435,543 | null |
75,630,374 | 1 | null | null | 0 | 13 | Given: Using Powershell Copy folder with template file to different directory
Re-name the .msg file and edit .msg file for recurring common values and Save.
Problem: The outlook open the file and save it in the Outlook draft folder rather than editing and saving it to given copied directory.
On google search, I found t... | Edit Outlook .msg file - how to save it from Outlook Draft to desire location using Powershell | CC BY-SA 4.0 | null | 2023-03-03T17:54:11.440 | 2023-03-03T19:38:08.370 | 2023-03-03T19:19:01.643 | 1,603,351 | 21,321,081 | [
"powershell",
"outlook",
"editing",
"office-automation",
"msg"
] |
75,630,381 | 2 | null | 75,629,036 | 0 | null | > The type or namespace 'Azure' does not exist in the namespace 'Microsoft'.
You should have the packages installed in your visual studio to use them in your application.
-
```
Install-Package Microsoft.Azure.WebJobs
Install-Package Microsoft.Azure.WebJobs.Host
Install-Package Microsoft.Extensions.Logging
```
. The library definitely uses `X-Protobuf-*` headers so it can't be anything else.
I am not familiar with this library so I cannot offer a code example.
But the library which offers classes to decode messages can be found [here](https:... | null | CC BY-SA 4.0 | null | 2023-03-03T17:55:09.517 | 2023-03-03T17:55:09.517 | null | null | 11,016,652 | null |
75,630,384 | 2 | null | 75,515,214 | 0 | null |
Also, in newer updates of prisma, referentialIntergrity id added to generalized and need not be specified. Delete and from and
Your schema.prisma file should look like this:
```
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model Category ... | null | CC BY-SA 4.0 | null | 2023-03-03T17:54:57.717 | 2023-03-03T17:54:57.717 | null | null | 14,148,915 | null |
75,630,386 | 1 | null | null | 0 | 23 | I am trying to create a AWS Lambda function for my project, which should invoke the endpoint and return prediction of the model as a result.
I attached sagemaker invoke endpoint IAM policy for the attached IAM role to the Lambda funtion. Still,i am getting task timed out error while invoking the endpoint.
I run the lam... | Time out error while invoking endpoint in AWS Lambda function | CC BY-SA 4.0 | null | 2023-03-03T17:55:25.770 | 2023-03-04T00:50:27.853 | 2023-03-04T00:50:27.853 | 9,826,919 | 9,826,919 | [
"amazon-web-services",
"aws-lambda",
"timeout",
"endpoint"
] |
75,630,383 | 1 | null | null | 0 | 10 | Trying to create a vm from a custom image - that image has 1 data disk with data in it already.
When running our plan:
Error: creating Windows Virtual Machine: (Name "xxxxxxxxx" / Resource Group "xxxxxxxx"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="I... | Create VM from Image that Contains Data Disks within Image | CC BY-SA 4.0 | null | 2023-03-03T17:54:57.573 | 2023-03-03T18:08:08.403 | 2023-03-03T18:08:08.403 | 162,698 | 16,359,171 | [
"terraform-provider-azure",
"azure-rm"
] |
75,630,346 | 1 | null | null | 0 | 15 | I'm trying to get renovate bot setup using the CLI so that I can play around with the config file before setting up it up to run in a docker container.
I've created a private test repository in GitHub containing a simple "hello world" project that has a few outdated dependencies. When I run `npx renovate` I get the err... | Renovate Dependency bot cannot find repos | CC BY-SA 4.0 | null | 2023-03-03T17:51:21.957 | 2023-03-04T23:48:58.553 | null | null | 9,993,704 | [
"node.js",
"github",
"github-api",
"renovate"
] |
75,630,388 | 1 | null | null | -1 | 12 | My Google Analytics 4 receives events such as "event_1" and "event_2" . How can I get the number of users who did both events in looker studio?
What I tried to do:
I successfully connected the GA4 and Looker Studio. I tried creating a Scorecard Table. In Metric set "Total users" and in the filters specified: include Ev... | How to get the number of users who committed both GA4 events in Looker Studio? | CC BY-SA 4.0 | null | 2023-03-03T17:55:51.973 | 2023-03-03T17:55:51.973 | null | null | 21,128,390 | [
"google-data-studio",
"looker-studio",
"datastudio"
] |
75,630,392 | 1 | null | null | 0 | 14 | I have an existing WCF service(A) that is using custom user validation. I need to write another WCF service(B) that will work as proxy between client and existing WCF service(A).
Is it a way how to get access to:
```
ClientCredentials.UserName.UserName
ClientCredentials.UserName.Password
```
How to get access to crede... | C# WCF pass through userName and password to another WCF service | CC BY-SA 4.0 | null | 2023-03-03T17:56:11.857 | 2023-03-03T17:56:11.857 | null | null | 3,458,949 | [
"c#",
"wcf",
"wcf-security"
] |
75,630,391 | 1 | null | null | 0 | 5 | I am trying to use with in a React Native app and to do so the documentation says that to get the user's current location the following code needs to be added (see [https://github.com/FaridSafi/react-native-google-places-autocomplete#more-examples](https://github.com/FaridSafi/react-native-google-places-autocomplete#m... | Global navigator object not found with Tyepscript | CC BY-SA 4.0 | null | 2023-03-03T17:56:09.940 | 2023-03-03T17:56:09.940 | null | null | 2,950,492 | [
"react-native",
"geolocation"
] |
75,630,390 | 1 | null | null | 0 | 6 | I am trying out TinyMce and find that I must 'host' the editor's html file on my FTP site to get it to work, otherwise I get the "Referer" error and Tiny is not operational. And because of this I am unable to save my work.
So my workflow has been:
1. Edit my page in TinyMCE using the hosted index.html file.
2. When re... | How to save current page in Tinymce | CC BY-SA 4.0 | null | 2023-03-03T17:56:02.430 | 2023-03-03T17:56:02.430 | null | null | 2,200,107 | [
"tinymce"
] |
75,630,398 | 2 | null | 75,628,530 | 1 | null | GCF on its own doesn't offer the thing you're looking for. You're going to have to set up some other source of data within your project using another GCP product, and query it from your function code.
Any product that persists data and is queryable will do, including any database. A Firestore document is easy enough t... | null | CC BY-SA 4.0 | null | 2023-03-03T17:56:36.360 | 2023-03-03T17:56:36.360 | null | null | 807,126 | null |
75,630,395 | 1 | null | null | 0 | 14 | I m using data table 1.10.20 and using the column-controlled child rows by setting the below :
```
dataTableOptions: {
columns: [{
title: "column 1",
className: "col1",
data: function (row){
........
}"},
{
title: "column 2",
className: "col2",
data: functi... | Datatables - Table header moves to child elements in responsive view | CC BY-SA 4.0 | null | 2023-03-03T17:56:28.433 | 2023-03-04T02:53:28.480 | 2023-03-04T02:53:28.480 | 11,268,474 | 11,268,474 | [
"datatable",
"datatables"
] |
75,630,397 | 2 | null | 74,339,953 | 0 | null | I had the same issue, and it seems to work when you use [setOptions](https://reactnavigation.org/docs/header-buttons/#header-interaction-with-its-screen-component) in your Screen file combined with a [useLayoutEffect](https://beta.reactjs.org/reference/react/useLayoutEffect).
```
import { useLayoutEffect, useState } fr... | null | CC BY-SA 4.0 | null | 2023-03-03T17:56:35.787 | 2023-03-03T17:59:27.770 | 2023-03-03T17:59:27.770 | 13,230,528 | 13,230,528 | null |
75,630,396 | 1 | null | null | 0 | 40 | I have a small java script on node.js that uses Puppeteer to scrape data from 2 websites. The loop runs indefinitely, every 10 seconds.
I work in headless=false to see how the web pages behave.
When opening, a pop up/modal warning "gambling sites forbidden to children" opens. I noticed that the pop up/modal opens a few... | Handle pop up/modals in web scraping (data is lost after closing the pop up) | CC BY-SA 4.0 | null | 2023-03-03T17:56:33.420 | 2023-03-03T23:31:36.157 | 2023-03-03T22:59:20.453 | 6,243,352 | 21,005,770 | [
"javascript",
"node.js",
"web-scraping",
"modal-dialog",
"puppeteer"
] |
75,630,402 | 1 | 75,630,414 | null | -1 | 49 | I have a dataframe like this:
[](https://i.stack.imgur.com/3O64w.png)
I want to move the values of the substances that have the same station ID and date on an unique row. How can I do that? maybe with `aggregate`or `match`or `merge`?
| Combine rows with same date and site | CC BY-SA 4.0 | null | 2023-03-03T17:57:16.480 | 2023-03-03T22:34:39.210 | 2023-03-03T22:34:39.210 | 752,890 | 10,950,769 | [
"r",
"date"
] |
75,630,403 | 1 | null | null | 0 | 16 | I am having a tough time understanding sending a multiPart message
The message that needs to be sent looks like the below. I do understand the message just do not know how to send it.
```
--5440585b006247a9a24fb4b81942c8c8\r\nContent-Disposition: form-data; name="key"\r\n\r\ne398f9e0-b9eb-11ed-97a9-b70a5ec88b1b\r\n--5... | Sending a multipart/form-data message | CC BY-SA 4.0 | null | 2023-03-03T17:57:17.963 | 2023-03-03T17:57:17.963 | null | null | 3,786,542 | [
"vb.net",
"multipartform-data"
] |
75,630,404 | 2 | null | 75,622,961 | -1 | null | Thanks so much for everyone's input. I was able to implement a fix by changing the below line:
foreach ($xmlWSIN->XmlNode->$counter->adoptableSearch as $output)
to
foreach ($xmlWSIN->XmlNode[$counter][0] as $output)
| null | CC BY-SA 4.0 | null | 2023-03-03T17:57:27.127 | 2023-03-03T17:57:27.127 | null | null | 21,323,099 | null |
75,630,401 | 1 | null | null | 1 | 33 | I have a problem with my flexbox (i think) for my website. The flex box actually does work but it goes way down ().
I found online that I have to use % instead of fixed sizes which I did and it does not seem to fix the problem. I also tried to use block methods but then it does a scroll bar but i want it to adapt to e... | How to resize flexbox to match screen resolution? | CC BY-SA 4.0 | null | 2023-03-03T17:57:05.437 | 2023-03-03T21:54:02.477 | 2023-03-03T21:54:02.477 | 616,443 | 20,615,856 | [
"javascript",
"html",
"css"
] |
75,630,394 | 2 | null | 75,629,870 | 2 | null | Please try the following solution.
It will work starting from SQL Server 2017 onwards due to dependency on the `TRIM()` function.
It is using SQL Server's XML and XQuery to each line.
I saved your sample data in the file.
And created a format file as follows:
```
<?xml version="1.0"?>
<BCPFORMAT xmlns="http://schema... | null | CC BY-SA 4.0 | null | 2023-03-03T17:56:21.937 | 2023-03-03T18:01:45.233 | 2023-03-03T18:01:45.233 | 1,932,311 | 1,932,311 | null |
75,630,407 | 2 | null | 67,677,320 | 0 | null | in my mac it worked only after adding 'force' flag to the command:
```
npm uninstall -g typescript --force
npm install -g typescript --force
```
| null | CC BY-SA 4.0 | null | 2023-03-03T17:57:50.810 | 2023-03-03T17:57:50.810 | null | null | 3,817,232 | null |
75,630,400 | 1 | 75,630,795 | null | -1 | 36 | So I have a multidimensional array like the one below:
```
[0]=>
array(4) {
["id"] => 110
["list"] => {}
["MainProduct"] => 2 <- Step2: Replace the 2 with a 5 where productName is Oranges
["productName"] => Oranges <- Step1: Find where we have "Oranges"
}
[1]=>
array(4) {
["id"] => 1... | How can I find an replace an array value based on another value in the same multidimensional array | CC BY-SA 4.0 | null | 2023-03-03T17:57:05.237 | 2023-03-04T10:09:47.727 | null | null | 2,891,571 | [
"php",
"arrays",
"multidimensional-array",
"replace"
] |
75,630,408 | 2 | null | 75,616,187 | 0 | null | After quite a bit of searching I found the problem, it was in the settings.json file of the Code Runner extension, changing Code-runner: Executor Map from settings and replacing `python -u` with `python3 -u` fixed the problem.
[Screen](https://i.stack.imgur.com/Bs83c.png)
[Screen2](https://i.stack.imgur.com/um6Eg.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T17:57:56.760 | 2023-03-03T17:57:56.760 | null | null | 21,268,368 | null |
75,630,406 | 2 | null | 75,630,322 | 0 | null | Your direct issue is simple: You have a field named `String[] grade;` in your `GradesAverage` class. Like all fields of non-primitive types that aren't initialized, its initial value is therefore `null`.
You never set it. There's a `setScore` which sets the `score` array, but no `setGrades`.
Later in `computeResult`, y... | null | CC BY-SA 4.0 | null | 2023-03-03T17:57:36.783 | 2023-03-03T17:57:36.783 | null | null | 768,644 | null |
75,630,389 | 1 | null | null | 0 | 19 | I am trying to create a more elegant correlation plot for seasonal data using ggplot2 and geom_tile(). I want to split each tile in the plot into four quadrants (one quadrant for each seasonal value).
I already have code to plot each season's correlations separately:
```
library(dplyr)
library(ggplot2)
# simplified da... | Subdivide tiles in ggplot2 geom_tile into quarters | CC BY-SA 4.0 | null | 2023-03-03T17:55:57.977 | 2023-03-03T19:33:14.430 | 2023-03-03T18:07:32.723 | 21,327,362 | 21,327,362 | [
"r",
"ggplot2",
"visualization",
"geom-tile"
] |
75,630,340 | 1 | null | null | 0 | 7 | I have this xml
```
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<MessageResponse GId="JPEF" MId="65effb8f-2180-428c-9285-527fdc97... | nested body response with separate pojos | CC BY-SA 4.0 | null | 2023-03-03T17:50:42.023 | 2023-03-03T17:50:42.023 | null | null | 3,085,993 | [
"java",
"jaxb",
"deserialization"
] |
75,630,415 | 2 | null | 70,885,146 | 0 | null | As mentioned in the question, this has been resolved in Rancher Desktop. However, for Windows users who might hit this question, a firewall rule might be required. ([https://docs.rancherdesktop.io/faq/](https://docs.rancherdesktop.io/faq/))
| null | CC BY-SA 4.0 | null | 2023-03-03T17:58:44.207 | 2023-03-03T18:04:17.527 | 2023-03-03T18:04:17.527 | 5,319,131 | 5,319,131 | null |
75,630,412 | 1 | null | null | 0 | 17 | Write now multiple BIRT Reports using 4.9.0 version. Some reports working fast enough. But some reports are surprisingly very slow.
One report is extremely slow. Report is based on stored procedure, have 2 parameters. Contains two label with formatted text and one table with title and detail row. All data are prepared ... | BIRT Report took too long to render | CC BY-SA 4.0 | null | 2023-03-03T17:58:20.223 | 2023-03-03T23:05:58.337 | null | null | 2,750,649 | [
"sql-server",
"performance",
"birt"
] |
75,630,413 | 2 | null | 75,392,950 | 1 | null | The Python version used in Azure Functions can affect the functionality of your functions as well as their performance. Different versions of Python may have different libraries or packages installed, which can lead to compatibility issues.
To keep the Python versions aligned, it's important to ensure that the Python v... | null | CC BY-SA 4.0 | null | 2023-03-03T17:58:32.137 | 2023-03-03T17:58:32.137 | null | null | 17,890,217 | null |
75,630,411 | 1 | 75,630,995 | null | 1 | 16 | I'm trying to create a data set in python (preferably pandas) that groups together all rows where the amount of time between the end_time of the last entry and the start_time of the subsequent one is < 10 minutes.
Example data:
| activity | start_time | end_time |
| -------- | ---------- | -------- |
| foo | 9:08:34... | Python & pandas: Batching data where difference between timestamps < set value | CC BY-SA 4.0 | null | 2023-03-03T17:58:16.177 | 2023-03-03T19:09:44.280 | null | null | 346,977 | [
"python",
"pandas"
] |
75,630,414 | 2 | null | 75,630,402 | 0 | null | If we want to remove the NA elements and keep only the non-NA, do a grouping by summarise and get the `sum`
```
library(dplyr)
df1 %>%
group_by(station, date) %>%
summarise(across(everything(),
~ sum(.x, na.rm = TRUE)), .groups = 'drop')
```
Or use a condition to return the first non-NA after grouping
```
d... | null | CC BY-SA 4.0 | null | 2023-03-03T17:58:34.757 | 2023-03-03T18:41:52.180 | 2023-03-03T18:41:52.180 | 3,732,271 | 3,732,271 | null |
75,630,422 | 2 | null | 75,630,374 | 0 | null | Instead of using `Application.CreateItemFromTemplate` (whcih does what its name suggests), use `Namespace.OpenSharedItem`.
When saving an item, you might also want to use `MailItem.SaveAs(.., olMsgUnicode)` instead of `MailItem.Save`.
| null | CC BY-SA 4.0 | null | 2023-03-03T17:59:28.187 | 2023-03-03T17:59:28.187 | null | null | 332,059 | null |
75,630,393 | 1 | null | null | 0 | 10 | I am trying to install electron on a corporate laptop (with strong security setting). I use the following command:
npm install electron
but have encountered the following error:
```
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 275ms
npm info run electron@23.1.2 postinstall node_m... | npm install electron failed with self-signed certificate in certificate chain error | CC BY-SA 4.0 | null | 2023-03-03T17:56:13.870 | 2023-03-03T17:56:13.870 | null | null | 21,112,019 | [
"electron",
"npm-install"
] |
75,630,416 | 2 | null | 75,625,361 | 1 | null | The issue is that [apexcharts](/questions/tagged/apexcharts) still thinks you want it to render the first chart, so draws itself back in.
There is a `.destroy()` method, but your code only generates the charts on first load, so destroying them would break that.
To have minimal changes to your code, I suggest having dif... | null | CC BY-SA 4.0 | null | 2023-03-03T17:58:50.920 | 2023-03-03T17:58:50.920 | null | null | 2,181,514 | null |
75,630,417 | 1 | null | null | 2 | 12 | I'm reading `clean architecture`.
`MyEntity` extends `AggregateRoot`.
And every time needs to find a record in database, I call repository method to find that, then convert the result to `MyEntity`, and apply an event to it.
e.g.
Entity use-case:
```
@Injectable()
export class MyUseCases {
constructor(private myFacto... | Should i return an Aggregate root in Repository? | CC BY-SA 4.0 | null | 2023-03-03T17:58:52.030 | 2023-03-03T17:58:52.030 | null | null | 13,539,715 | [
"nestjs",
"domain-driven-design",
"clean-architecture"
] |
75,630,425 | 1 | null | null | 0 | 18 | I want to use "once per bar" feature in Strategy inputs as in Indicator. What should I do?
I want the strategy to be traded immediately as in the indicator without waiting for the candle to close when the conditions are met . Thanks..
I don't want it to wait for the candle to close. It should be processed immediately.... | I want to use "once per bar" feature in Strategy inputs as in Indicator. What should I do? | CC BY-SA 4.0 | null | 2023-03-03T17:59:40.110 | 2023-03-03T18:18:21.937 | null | null | 21,314,649 | [
"pine-script",
"pine-script-v5",
"strategy-pattern",
"closest",
"candlestick-chart"
] |
75,630,426 | 2 | null | 45,885,615 | 0 | null | A simple solution to access Configuration in static class is by using this beautiful line of code.
```
public static string value = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build().GetSection("Admin").Value;
```
Any place where you want to access Configuration without injecting it into the constructo... | null | CC BY-SA 4.0 | null | 2023-03-03T17:59:42.230 | 2023-03-03T17:59:42.230 | null | null | 9,094,623 | null |
75,630,421 | 1 | null | null | 0 | 38 | in my small app I would like to reuse method used for prices calculation for few different objects, that gives me an idea it could be generic method, sometimes it will receive main-products and return them, sometimes it will receive articles and return them, sometimes it will receive category-articles and returned them... | How to use props of generic list which is part of generic method - c# | CC BY-SA 4.0 | null | 2023-03-03T17:59:22.953 | 2023-03-03T20:22:55.913 | null | null | 6,726,592 | [
"c#",
".net",
"generics",
".net-core"
] |
75,630,423 | 1 | null | null | 0 | 62 | Getting problem in flowing images from left to right using grid. Some images are not flowing from left to right as per number as shown in image (like 5th image should come before image 6. Same with image 9). Images should be shown from left to right with numbers [](https://i.stack.imgur.com/ueEne.jpg)
Here is my code s... | Getting problem in flowing images from left to right (i.e. 1,2,3,4...... more) using grid | CC BY-SA 4.0 | null | 2023-03-03T17:59:38.793 | 2023-03-04T21:00:41.163 | 2023-03-04T17:16:57.667 | 14,495,095 | 14,495,095 | [
"reactjs",
"grid",
"css-in-js"
] |
75,630,427 | 2 | null | 75,628,399 | 0 | null | If you want your python script's output to run in a console you can interact with (for example to enter user input like `Ctrl+C`) you have to .
You can reach the run configuration either through the dropdown next to the "run" button, or by clicking on the wrench-icon in the output-window:
[](https://i.stack.imgur.com/a... | null | CC BY-SA 4.0 | null | 2023-03-03T17:59:54.080 | 2023-03-03T18:08:26.603 | 2023-03-03T18:08:26.603 | 2,620,351 | 2,620,351 | null |
75,630,428 | 2 | null | 75,629,016 | 0 | null | SOLVED!
The issue was dess.txt's encoding. Windows encodes its txt files differently which results in a unicode error.
For anyone facing similar problem:
1. cd into your txt's directory
2. Open your txt in GEdit (you can get it on ubuntu software app) via terminal by typinggedit name.txt
3. Click save and change your ... | null | CC BY-SA 4.0 | null | 2023-03-03T17:59:58.657 | 2023-03-03T17:59:58.657 | null | null | 20,495,043 | null |
75,630,420 | 1 | null | null | 0 | 14 | For a college assignment, I have been tasked with calculating the genotypes of approximately 200 generations, with the code stopping when BB is greater than .99 . I have checked in with my Professor, who stated that my code looked good but there is a breakpoint somewhere that is causing the program to not write anythin... | I am having trouble finding the breakpoint of my code (Tabulate, Python) | CC BY-SA 4.0 | null | 2023-03-03T17:59:18.590 | 2023-03-03T17:59:18.590 | null | null | 21,327,814 | [
"python",
"tabulate"
] |
75,630,410 | 1 | null | null | 0 | 24 | I would like to plot some gene expression figures on the same plot with `ggplot2` with `facet_wrap`.
Here is my `facet_wrap(.~query+Species+Tissue, ncol = 4)`
For one unique `query`, there are 2 types of `Species`, 2 types of `Tissues`, i.e., I would like to do a row for each `query` with `facet_wrap` (4 figures per ro... | Uneven number of plots in each row or adding figures without data with facet_wrap ggplot2 | CC BY-SA 4.0 | null | 2023-03-03T17:58:03.630 | 2023-03-03T17:58:03.630 | null | null | 10,431,603 | [
"r",
"ggplot2",
"visualization",
"facet-wrap"
] |
75,630,424 | 1 | 75,632,456 | null | 0 | 30 | I can make a new environment, but attempting to installing packages or updating conda in this env fails with the above error message.
- - - -
```
ssl_verify: true
channels:
- defaults
channel_priority: strict
```
```
(base) C:\Users\canoe>conda --version
conda 22.11.1
(base) C:\Users\canoe>conda create --name ... | Conda commands fail with error "OpenSSL appears to be unavailable on this machine." | CC BY-SA 4.0 | null | 2023-03-03T17:59:39.097 | 2023-03-03T22:44:09.560 | 2023-03-03T22:40:59.497 | 4,729,894 | 4,729,894 | [
"openssl",
"conda",
"pyinstaller"
] |
75,630,434 | 2 | null | 53,565,143 | 0 | null | I ran into a problem with similair symptom as yours:
```
RAMDISK: gzip image found at block 0
RAMDISK: incomplete write (14752 != 26639)
write error
VFS: Mounted root (ramfs filesystem) readonly on device 0:17
devtmpfs: error mounting -2
...
Kernel panic - not syncing: No working init found.
```
However, my problem wa... | null | CC BY-SA 4.0 | null | 2023-03-03T18:00:18.777 | 2023-03-03T18:00:18.777 | null | null | 10,757,062 | null |
75,630,431 | 1 | null | null | 0 | 14 | I have a python dataframe which has two new columns called Open_Value and Close Value.
When Open_Flag = 1 then Open_Value should = 1000, otherwise it should be the previous value in Close Value.
However, Close_Value should be Open_Value * Daily_Change, so the two columns are dependent on each other.
The problem is I ne... | How to update dataframe columns which are dependent on eachother | CC BY-SA 4.0 | null | 2023-03-03T18:00:01.687 | 2023-03-03T18:12:36.290 | null | null | 19,291,614 | [
"python",
"pandas",
"loops"
] |
75,630,437 | 2 | null | 75,623,410 | 0 | null | If you did not save the file in your drive after a while it will be removed from colab so it is better to override you drive and save it in your drive by specifying your directory in your drive using dump
```
import os
import pickle
filename = 'pred_model1'
path = '/path/to/save/pickle/'
if not os.path.exists(path):
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:00:26.103 | 2023-03-03T18:00:26.103 | null | null | 1,954,048 | null |
75,630,438 | 2 | null | 75,392,887 | 0 | null | Run fuslogvw to show you what is happening.
The steps are detailed in this [Microsoft post](https://learn.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer) or [this one](https://techcommunity.microsoft.com/t5/iis-support-blog/fusion-log-viewer-fuslogvw-exe/ba-p/784396). Basically you... | null | CC BY-SA 4.0 | null | 2023-03-03T18:00:26.830 | 2023-03-03T18:00:26.830 | null | null | 1,073,742 | null |
75,630,439 | 2 | null | 75,626,993 | 0 | null | You can do a fake merge, that you modify before committing.
I would do so in a separate clone, in order to not disturb your existing working tree which is currently set to branch B, where you are working
```
git switch A
git merge --ours B
# copy files from B to A
git commit -m "Import B.x commit to A"
git push
```
Th... | null | CC BY-SA 4.0 | null | 2023-03-03T18:00:28.183 | 2023-03-03T18:00:28.183 | null | null | 6,309 | null |
75,630,435 | 1 | null | null | 0 | 4 | My repository uses a Glue module from a different repo several times. Each usage begins with:
```
module "bar" {
source = "git::git@github.com:foo/modules.git//app?ref=v0.0.3"
```
I have a whole bunch of such blocks, and all use the same `source`. It seemed not DRY to duplicate the path, and also it's really annoyin... | How to avoid setting module source multiple times? | CC BY-SA 4.0 | null | 2023-03-03T18:00:19.213 | 2023-03-03T18:00:19.213 | null | null | 19,438,577 | [
"refactoring",
"dry",
"terraform-modules"
] |
75,630,440 | 1 | null | null | 0 | 8 | i have a legend label with multiple rows. the default display of the corresponding legend key (so the marker from the plot) is centered next to the multiple rows. however, i want the legend key just centered infront of the first row of the label.
for a simple example :
```
x = [0,1,2,3,4,5,6,7,8,9,10]
y1 = [2,2.4,3.1,... | how to manipulate vertical position of legend key for multirows legend labels? | CC BY-SA 4.0 | null | 2023-03-03T18:00:45.140 | 2023-03-03T18:04:47.213 | 2023-03-03T18:04:47.213 | 535,275 | 21,327,643 | [
"python",
"location",
"legend"
] |
75,630,444 | 2 | null | 10,434,001 | 0 | null | >
## You can make your own function to do it like this:
---
```
const static = (root = "") => app.get(/./, (req, res) => res.sendFile(__dirname + root + req.url));
```
>
## You can also do it with express like this:
---
```
app.use('/', express.static(public));
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:01:30.957 | 2023-03-03T18:01:30.957 | null | null | 15,931,715 | null |
75,630,441 | 2 | null | 59,606,822 | 0 | null | In my case (netbeans 11.0) the error occurs because the Plugin Portal repository does not work, what I did was:
Goto to Tools -> Plugins -> Settings
Edit the link of Plugin Portal to the correct URL as per your Netbeans installation from the following link:
[https://cwiki.apache.org/confluence/display/NETBEANS/Where+to... | null | CC BY-SA 4.0 | null | 2023-03-03T18:01:05.553 | 2023-03-03T18:23:30.087 | 2023-03-03T18:23:30.087 | 34,768 | 34,768 | null |
75,630,442 | 1 | null | null | 0 | 37 | I have a method A that takes (Consumer<Map<String, List>>) as a method parameter.
```
public void myMethodA(Consumer<Map<String,List<String>>> someMap) {
```
However, my method B which calls method A has a Hashmap with it:
```
Map<String, String> myMap = Collections.singletonMap("a1", Arrays.asList("b"));
```
How can... | How to convert a map to a consumer of a map in java 8? | CC BY-SA 4.0 | null | 2023-03-03T18:01:20.243 | 2023-03-03T18:55:16.200 | 2023-03-03T18:55:16.200 | 2,756,409 | 3,351,754 | [
"java",
"hashmap",
"consumer"
] |
75,630,445 | 1 | null | null | 0 | 8 | When starting a new project using nextron
```
npx create-nextron-app my-app
```
everything works perfectly, however when installing serialport
```
npm i serialport
```
this error happens
[Error Image](https://i.stack.imgur.com/rqNDz.png)
the communication with the device works, I can see it in the console.log, but el... | how to solve the error when using nextron with serialport? | CC BY-SA 4.0 | null | 2023-03-03T18:01:42.617 | 2023-03-03T18:02:14.130 | 2023-03-03T18:02:14.130 | 15,711,099 | 15,711,099 | [
"electron",
"serial-port"
] |
75,630,448 | 2 | null | 75,626,834 | 1 | null | Your second way supposes your feature branch would need/require refactor, since you are rebasing `feature` on top of `refactor`.
If that is not the case, using the cheery-pick option, you can remove the commit from the feature branch by `git reset --hard C` (after a git stash, in case you have other work in progress no... | null | CC BY-SA 4.0 | null | 2023-03-03T18:01:55.357 | 2023-03-03T18:01:55.357 | null | null | 6,309 | null |
75,630,446 | 2 | null | 20,703,733 | 0 | null | Probably this may help someone who is a noob like me!
Make sure that you are not including the `target` along with the `predictors`. I accidentally included the `target` along with the `predictors` and struggled with this for a long time, for such a silly mistake.
Since the `target` which you included along with the `... | null | CC BY-SA 4.0 | null | 2023-03-03T18:01:49.967 | 2023-03-03T18:01:49.967 | null | null | 1,820,880 | null |
75,630,450 | 1 | null | null | -2 | 19 | ```
update hello set e_age=e_age+10 FROM hello
inner join department on hello.e_dept=dept.d_name
where dept.d_location='New York';
```
error occur in this
in this from is not at suitable position error occuring
| update hello set e_age=e_age+10 FROM hello inner join department on hello.e_dept=dept.d_name where dept.d_location='New York'; error occur in this | CC BY-SA 4.0 | null | 2023-03-03T18:02:02.527 | 2023-03-04T09:53:03.353 | 2023-03-04T09:53:03.353 | 4,361,999 | 19,330,277 | [
"mysql",
"sql"
] |
75,630,447 | 2 | null | 75,629,886 | 0 | null | You are passing `vpc.privateSubnets` as the interface endpoint subnets, but this attribute is `undefined`. Your VPC defines a single `PRIVATE_ISOLATED` subnet, which is available as `vpc.isolatedSubnets`.
```
subnets: {
subnets: vpc.isolatedSubnets
},
```
Here's how the VPC subnet attributes map to [SubnetType]... | null | CC BY-SA 4.0 | null | 2023-03-03T18:01:52.630 | 2023-03-03T18:01:52.630 | null | null | 1,103,511 | null |
75,630,453 | 2 | null | 75,630,084 | 1 | null | You could concatenate the arrays of two streams (one stream contains a single array, the other stream contains multiple arrays). This builds the cartesian product of both streams.
```
[.InstanceId] + (.Entries[] | [.ApplicationType, .Name, .Version, .PackageId, .Publisher, .URL, .Summary])
```
Output:
```
[
"i-0af68... | null | CC BY-SA 4.0 | null | 2023-03-03T18:02:38.890 | 2023-03-03T18:02:38.890 | null | null | 112,968 | null |
75,630,451 | 2 | null | 75,621,909 | 1 | null | You can use [Prisma Client results extension](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions/result) (They're still under a feature flag, so at your own risk).
First enable the feature
```
// schema.prisma
generator client {
provider = "prisma-client-js"
previewFeatures = ["clientExt... | null | CC BY-SA 4.0 | null | 2023-03-03T18:02:14.640 | 2023-03-03T22:36:42.143 | 2023-03-03T22:36:42.143 | 7,493,763 | 7,493,763 | null |
75,630,449 | 1 | null | null | 0 | 6 | i want to retrieve Departments and its Employee, with filter on both table
something like this
```
SELECT d.name, e.name
FROM departments d
JOIN employee e on d.id = e.department_id
WHERE d.name = "Finance" and e.name like '%m%'
```
here's my graphql query
```
{
findDepartment(name:"Finance", employee:"m") {
id
... | Filter Graphene using Custom type SQLAlchemy | CC BY-SA 4.0 | null | 2023-03-03T18:01:57.770 | 2023-03-03T18:08:34.563 | 2023-03-03T18:08:34.563 | 400,617 | 8,343,203 | [
"python",
"graphene-python",
"graphene-sqlalchemy"
] |
75,630,452 | 2 | null | 75,630,101 | 2 | null | I suggest you to create sub-table that will check your condition and then you can join it with main df.
```
df.join(
other = df.groupby("column").agg(
null_cond = pl.any(pl.all().is_null()).all()
),
on="column", how="left"
).filter((pl.col("mandatory") == "M") & pl.col("null_cond"))
```
---
And ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:02:33.730 | 2023-03-03T18:22:31.127 | 2023-03-03T18:22:31.127 | 13,469,933 | 13,469,933 | null |
75,630,454 | 1 | null | null | 0 | 11 | I am very new to App Script for Google Sheets and am working on a project where I need to set multiple static time stamps that are triggered by multiple checkboxes. I've tried multiple copy and paste scripts to no avail. I did happen to find this useful script on youtube but I can only modify it to look at one column a... | Checkbox Triggered Time Stamp for Google Sheets | CC BY-SA 4.0 | null | 2023-03-03T18:02:49.103 | 2023-03-04T18:02:38.227 | null | null | 21,326,779 | [
"google-apps-script"
] |
75,630,456 | 2 | null | 53,041,669 | 0 | null | Probably this may help someone who is a noob like me!
Make sure that you are not including the `target` along with the `predictors`. I accidentally included the `target` along with the `predictors` and struggled with this for a long time, for such a silly mistake.
Since the `target` which you included along with the `... | null | CC BY-SA 4.0 | null | 2023-03-03T18:02:52.237 | 2023-03-03T18:02:52.237 | null | null | 1,820,880 | null |
75,630,461 | 1 | null | null | 0 | 10 | Currently I am involved in a cluster of micro-services. Some of these micro-services are generating JWT with various claims (with/without expiration date, not before time etc.) My question is PACT suitable for JWT validation or not? Like generated JWT for microservice A to be valid and accepted by generated JWT for mic... | Is PACT suitable for testing for JWT with various claims? | CC BY-SA 4.0 | null | 2023-03-03T18:03:31.380 | 2023-03-04T11:27:45.363 | 2023-03-04T11:27:45.363 | 1,574,345 | 1,574,345 | [
"jwt",
"pact",
"contract"
] |
75,630,455 | 1 | null | null | 2 | 45 | I have code that frequently throws an `InvalidOperationException`. In this specific case, the exception is actually OK and I don't want the debugger to break when it gets thrown. However, I can't disable all `InvalidOperationException` breaks because that's just a bad idea.
Supposedly the `DebuggerStepThrough` or `Debu... | Visual Studio C# - Don't break for any exception at this line | CC BY-SA 4.0 | null | 2023-03-03T18:02:51.890 | 2023-03-03T18:50:39.990 | 2023-03-03T18:50:39.990 | 19,751,859 | 19,751,859 | [
"c#",
"visual-studio",
"exception",
"debugging"
] |
75,630,429 | 2 | null | 75,630,159 | 0 | null | You can use a `CASE WHEN` clause
```
CASE WHEN (volume > 0) THEN
(price * volume) + (prevNetVolume * prevAveragePrice))/(prevNetVolume + volme)
else
prevAveragePrice
END averagePrice
```
As you asked only for how to get the values, you can use window funcz´tion to get the SUM and AVG
AND the mentioned CTE t... | null | CC BY-SA 4.0 | null | 2023-03-03T17:59:58.667 | 2023-03-03T21:22:54.720 | 2023-03-03T21:22:54.720 | 5,193,536 | 5,193,536 | null |
75,630,459 | 2 | null | 75,630,366 | 0 | null | You'll need to specify the appropriate headers first.
```
url = "https://ieeexplore.ieee.org/search/searchresult.jsp?action=search&newsearch=true&matchBoolean=true&queryText=(%22All%20Metadata%22:Deep%20learning)%20AND%20(%22All%20Metadata%22:radar)&ranges=2017_2023_Year"
headers = {
'Accept': 'text/html,applicati... | null | CC BY-SA 4.0 | null | 2023-03-03T18:03:20.413 | 2023-03-03T18:03:20.413 | null | null | 6,533,855 | null |
75,630,464 | 2 | null | 37,585,521 | 0 | null | Ensure your table name is plural:
db.cols.insertMany
| null | CC BY-SA 4.0 | null | 2023-03-03T18:03:41.620 | 2023-03-03T18:03:41.620 | null | null | 31,274 | null |
75,630,462 | 1 | null | null | 0 | 13 | In the storyboard for my macOS application, I've included a "Preferences…" menu item that appears as the third menu item in my application menu (first item is my Amount, second is a separator, third is "Preferences…", fourth is another separator). Choosing this menu item brings up my preferences screen. However, when I... | Preferences menu item appears as "Settings" | CC BY-SA 4.0 | null | 2023-03-03T18:03:33.823 | 2023-03-03T21:44:30.667 | 2023-03-03T21:44:30.667 | 20,287,183 | 11,820,691 | [
"macos",
"menu",
"menuitem"
] |
75,630,465 | 2 | null | 75,629,585 | 3 | null | Simply move over the key-value pairs using `pairs`, move them to a new table, deleting them from the original table, then set the `letters` and `otherStuff` subtable:
```
local t = {a = 1, b = 2, c = 3}
-- Restructure t
local letters = {}
for k, v in pairs(t) do
letters[k] = v -- copy to letters table
t[k] = n... | null | CC BY-SA 4.0 | null | 2023-03-03T18:03:49.737 | 2023-03-03T18:03:49.737 | null | null | 7,185,318 | null |
75,630,458 | 1 | null | null | 1 | 22 | I am new to webscraping and Puppeteer and I'm attempting to learn the selector methods in the library. I am trying to select the text in the following code after the `::before` tag. I also want the text in the span directly after it but the text in the anchor tag is more important.
```
<div class="details-inner">
<a cl... | How to use Puppeteer to copy text after the ::before psuedo-element? | CC BY-SA 4.0 | null | 2023-03-03T18:03:19.880 | 2023-03-03T22:49:01.583 | 2023-03-03T22:45:14.390 | 6,243,352 | 10,793,479 | [
"javascript",
"html",
"web-scraping",
"dom",
"puppeteer"
] |
75,630,467 | 2 | null | 75,630,026 | 0 | null | Looking your code in the model, you miss one thing, you aren't putting the password attribute inside the protected $fillable variable.
Try doing this:
```
protected $fillable = [
'email',
'token',
'created_at',
'password'
];
```
Also, maybe you don't need to put the created_at variable inside de array.... | null | CC BY-SA 4.0 | null | 2023-03-03T18:03:55.583 | 2023-03-03T18:03:55.583 | null | null | 18,867,727 | null |
75,630,468 | 2 | null | 75,629,908 | 0 | null | Images can be used as variables.
For this specific issue, the file path to the image may be correct according to the location of your variables.scss, but don't forget that ultimately the page runs off of the converted main.css file, so you must adjust your path to be correct from the main.css location.
instead of:
```
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:03:58.383 | 2023-03-03T18:03:58.383 | null | null | 20,449,565 | null |
75,630,471 | 1 | null | null | 0 | 27 | I am creating the following graph with labels being created for each variable as per the below. I can include `\n` and move the text below the as per the example below, but how can I make the text "Cat.1 [1-3] & Cat.2 [3-5]" smaller? I tried `\small` but didn't work.
```
graph <- within(results, Variable_label[Variable... | \n to move text below, which syntax to make text smaller? (ggplot) | CC BY-SA 4.0 | null | 2023-03-03T18:04:33.800 | 2023-03-03T21:09:32.267 | 2023-03-03T21:09:32.267 | 1,082,434 | 11,175,594 | [
"r",
"ggplot2",
"label"
] |
75,630,433 | 2 | null | 75,628,222 | 0 | null | Segmentation fault is not caused by any "broken Ubuntu packages", but by plenty of typos etc. errors in your "mdaomdv.tcl" file.
Section "ns node-config": after `\` is forbidden.
The tcl/otcl code: For is spelled 'for', Set is 'set', Proc is 'proc', Global is 'global', Close is 'close', Exec is 'exec'.
For correct spe... | null | CC BY-SA 4.0 | null | 2023-03-03T18:00:09.840 | 2023-03-04T16:58:05.070 | 2023-03-04T16:58:05.070 | 4,491,743 | 4,491,743 | null |
75,630,470 | 2 | null | 75,629,696 | 1 | null | > Okay extra val$interval is properly added but where is extra param com.example.TalkingClock in the constructor for `TalkingClock.this.beep`?
It isn't there because that wouldn't make any sense. Imagine you wrote `TalkingClock.this.beep.toLowerCase()` (and beep was a string) - would you expect a field for that too?
Th... | null | CC BY-SA 4.0 | null | 2023-03-03T18:04:10.047 | 2023-03-03T18:04:10.047 | null | null | 768,644 | null |
75,630,473 | 2 | null | 75,628,850 | 1 | null | Try to handle the `ToggleButton.Checked` attached event for the `ListBox`.
I believe it should be implemented something like this in Powershell:
```
[System.Windows.RoutedEventHandler]$handler = {
...
}
...
$window.lb_Users.AddHandler([System.Windows.Controls.CheckBox]::CheckedEvent, $handler)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:04:36.623 | 2023-03-03T18:04:36.623 | null | null | 7,252,182 | null |
75,630,436 | 1 | null | null | 0 | 9 | I have installed `systemtap` following their [Ubuntu tutorial](https://sourceware.org/systemtap/wiki/SystemtapOnUbuntu). I took my kernel debug symbols following [Ubuntu's wiki tutorial](https://wiki.ubuntu.com/Debug%20Symbol%20Packages). Since I have SecureBoot enabled, I am "using" a compile server (hosted on my mach... | Systemtap Ubuntu 22.04.2 compile error: static declaration of ‘proc_set_user’ follows non-static declaration | CC BY-SA 4.0 | null | 2023-03-03T18:00:21.083 | 2023-03-03T18:00:21.083 | null | null | 8,352,508 | [
"ubuntu",
"systemtap"
] |
75,630,463 | 2 | null | 75,629,666 | 2 | null | A better answer was already posted, but this was a good exercise for using `itertools` and this also works:
```
from itertools import combinations, product
names = ['a', 'b']
numbers = [1, 2, 3]
perm_list = [list(perm) for perm_len in range(len(numbers)+1) for perm in combinations(numbers, perm_len)] # generate per... | null | CC BY-SA 4.0 | null | 2023-03-03T18:03:35.217 | 2023-03-03T18:46:49.617 | 2023-03-03T18:46:49.617 | 17,200,348 | 17,200,348 | null |
75,630,466 | 1 | null | null | 0 | 18 | I am making a leveling system for my Discord bot and I am working on a "/level" command that displays a user's level or if they input a different user it will show that user's level.
If they input a user it'll show that users level so if they don't input a user I want it to show the author's level, so I have
```
if mem... | 'Nonetype' object has no attribute 'author' | CC BY-SA 4.0 | null | 2023-03-03T18:03:55.280 | 2023-03-03T18:15:39.873 | 2023-03-03T18:15:39.873 | 535,275 | 21,327,723 | [
"discord",
"discord.py",
"bots"
] |
75,630,476 | 2 | null | 75,616,258 | 2 | null | In case you need to remove optional and undefined properties from a type you can define `OmitNullish` type using `NonNullable` this way:
```
type OmitNullish<T> = {
[K in keyof T as T[K] extends NonNullable<T[K]> ? K : never]: T[K];
};
```
This can be used this way:
```
type MyType = {
one?: string,
two: num... | null | CC BY-SA 4.0 | null | 2023-03-03T18:04:57.950 | 2023-03-03T18:04:57.950 | null | null | 1,926,237 | null |
75,630,475 | 2 | null | 75,630,137 | 0 | null | Surround the `for` loop with a `while` loop, and `break` from that loop when the "restart" condition is met.
Breaking from multiple loops is tricky. It is especially tricky in this case, because we only want to break the `while` loop if element of the `a` list is valid. The most straightforward way to do this is to s... | null | CC BY-SA 4.0 | null | 2023-03-03T18:04:57.450 | 2023-03-03T18:04:57.450 | null | null | 523,612 | null |
75,630,474 | 2 | null | 75,627,119 | 0 | null | How about configuring all the flyway loggers (i.e. logger start with the name `org.flywaydb`) to output the logs to a file appender with a fixed file path , then your codes read all content from this log file to a variable for further processing ?
The file appender also need to be configured as additive such that it wi... | null | CC BY-SA 4.0 | null | 2023-03-03T18:04:54.433 | 2023-03-04T11:38:50.057 | 2023-03-04T11:38:50.057 | 339,637 | 339,637 | null |
75,630,472 | 2 | null | 75,630,366 | 0 | null | The data you're looking for is obtained from different URL via Ajax call. To get them you can use next example:
```
import json
import requests
headers = {
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0",
"Referer": "https://ieeexplore.ieee.org",
}
api_url = "htt... | null | CC BY-SA 4.0 | null | 2023-03-03T18:04:35.800 | 2023-03-03T18:04:35.800 | null | null | 10,035,985 | null |
75,630,477 | 1 | null | null | 1 | 15 | I'm using Angular 14 and the corresponding lint version. I hvae this in my package.json ...
```
"name": "my-project",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
...
"lint": "ng lint"
},
```
When I run "npm run lint," I get errors like
```
42:10 error Type number trivia... | How do I run auto-corrections for lint in an Angular 14 project? | CC BY-SA 4.0 | null | 2023-03-03T18:04:58.123 | 2023-03-03T18:59:00.120 | null | null | 1,235,929 | [
"angular",
"lint",
"angular14",
"autocorrect"
] |