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,629,469
2
null
75,624,013
0
null
This is done because: ``` alter table varchar_test add column t_fld integer NOT NULL; ERROR: column "t_fld" of relation "varchar_test" contains null values ``` A `DEFAULT` is always specified for a column, by default that value is `NULL` per docs [CREATE TABLE](https://www.postgresql.org/docs/current/sql-createtable....
null
CC BY-SA 4.0
null
2023-03-03T16:15:22.920
2023-03-03T16:15:22.920
null
null
7,070,613
null
75,629,478
2
null
75,628,954
0
null
Managed to resolve by simply renaming the following variable: ``` 'name' => env('APP_NAME', 'laravel-backup') ``` To ``` 'name' => env('BACKUP_FOLDER', 'backups') ``` This way i don't need to configure the backup disk in the filesystem.php file either - I can just use my existing s3 configuration that already defined...
null
CC BY-SA 4.0
null
2023-03-03T16:16:29.850
2023-03-03T16:16:29.850
null
null
3,928,796
null
75,629,479
1
null
null
-2
22
How to set up permissions on Linux Debian so that PHP can change folder permissions using the chmod() function inside php through web-site. hmod($destiation_dir, 0777) don't work in php
How to set up permissions on Linux Debian so that PHP can change folder permissions
CC BY-SA 4.0
null
2023-03-03T16:16:42.723
2023-03-03T16:25:21.143
null
null
21,327,262
[ "php", "linux", "permissions", "debian", "chmod" ]
75,629,480
2
null
75,629,039
0
null
In the Metrics of your Front Door, apply splitting by Origin and you'll get this graph where you can see what the status of each origin is. [](https://i.stack.imgur.com/Hf7Ax.png)
null
CC BY-SA 4.0
null
2023-03-03T16:16:43.167
2023-03-03T16:16:43.167
null
null
1,537,195
null
75,629,467
1
null
null
0
17
I am working in plotting a simple map with matplotlib which includes data from recent earthquakes. I am sizing the dots in the map according to each instance's magnitude, and it seems that there are some earthquakes that have negative magnitude. When I run my code, I get this error: The 'size' property is a number and ...
matplotlib function won't work with negative floats
CC BY-SA 4.0
null
2023-03-03T16:15:12.757
2023-03-03T16:15:12.757
null
null
21,213,228
[ "python", "matplotlib", "valueerror" ]
75,629,474
2
null
75,627,030
2
null
Something like this could save some space, then you could add the category values to your options to indicate the category. ``` <div class="custom-select" style="width:200px;"> <form action="#"> <select> <option value="0">Select car:</option> <optgroup label="Car" data-max-options="2"> <option value="1">Sal...
null
CC BY-SA 4.0
null
2023-03-03T16:16:13.867
2023-03-03T16:16:13.867
null
null
11,887,641
null
75,629,482
1
null
null
-1
30
I am using a VBA that completes a VLookup, it works, but brings back a value of #N/A. I can manually intervene by double clicking in the cell the vlookup is looking in, but how would i implement this action into my VBA? I realise this is an error with my data, not the actual VBA but i cant think of any way around it. I...
Vlookup failing to bring back correct results
CC BY-SA 4.0
null
2023-03-03T16:17:02.957
2023-03-03T16:44:13.610
2023-03-03T16:20:43.117
9,245,853
20,824,054
[ "excel", "vba", "vlookup" ]
75,629,481
2
null
75,629,424
1
null
``` function now() { document.querySelector("#id1").style.display = 'none'; document.querySelector("#id2").style.visibility = "hidden"; } ``` q2 and q3 dont mean nothing if their not set as variables. if q2 and q3 are arrays (containing multiple elements) you'll need to loop through them and set style for ea...
null
CC BY-SA 4.0
null
2023-03-03T16:16:54.683
2023-03-03T16:16:54.683
null
null
13,044,377
null
75,629,477
1
null
null
0
11
On one subscription, I'm seeing occasional redelivery of messages. This seems to happen due to an expired ack deadline, which I can tell by looking at the "expired ack deadlines count" metric. The subscription is configured with an ack deadline of 360 seconds. The vast majority of the messages are acked within one seco...
Expired ack deadline while message is acknowledged well within time
CC BY-SA 4.0
null
2023-03-03T16:16:21.173
2023-03-03T21:49:27.107
null
null
1,183,126
[ "google-cloud-pubsub" ]
75,629,485
2
null
75,629,455
-1
null
rxJS has a `from` operator for this - [https://www.learnrxjs.io/learn-rxjs/operators/creation/from](https://www.learnrxjs.io/learn-rxjs/operators/creation/from)
null
CC BY-SA 4.0
null
2023-03-03T16:17:15.327
2023-03-03T16:17:15.327
null
null
7,375,929
null
75,629,484
1
null
null
-1
38
Regx is not my thing. I have a large file where I want to replace the following example: ``` <g:id><![CDATA[131614-3XL]]></g:id> ``` should be replace with: ``` <g:id><![CDATA[131614-3XL]]></g:id><g:id2><![CDATA[131614]]></g:id2> ``` Please note that "-3XL" is deleted in id2 and please note that -3XL could be many ot...
Problems using preg_replace
CC BY-SA 4.0
null
2023-03-03T16:17:12.367
2023-03-03T17:09:06.880
2023-03-03T16:52:29.307
1,491,895
21,327,217
[ "php", "preg-replace" ]
75,629,486
1
null
null
0
17
I know I can use `Intl.DisplayNames` to get the singular form (e.g. US Dollar). ``` const currencyNameEnUs = new Intl.DisplayNames( 'en-US', { type: 'currency' } ); const currencyCode = 'USD'; console.log( currencyNameEnUs.of( currencyCode ) ); // Expected output: "US Dollar" ``` But, I don't know how to pluralize th...
How do you get plural currency name with JS?
CC BY-SA 4.0
null
2023-03-03T16:17:26.717
2023-03-03T16:17:26.717
null
null
1,631,002
[ "javascript", "internationalization", "pluralize", "plural" ]
75,629,492
2
null
12,710,385
0
null
( since this XML thingy caused tons of trouble for me , i switched to the "give me an associative array" by using `$myarray = json_decode(json_encode(simplexml_load_string($response, 'SimpleXMLElement', LIBXML_NOCDATA)), true);` That way the "CDATA[" parts are also included as clear text regards
null
CC BY-SA 4.0
null
2023-03-03T16:17:52.027
2023-03-03T16:17:52.027
null
null
18,068,312
null
75,629,490
2
null
75,629,455
2
null
There are many ways. One of the simplest I think is to use `toPromise` from `RxJS`. But this function is still since version 7. The new function is `lastValueFrom`. Works like this: ``` async someFunction(){ ... try { await data = lastValueFrom(apiRequest()) console.log(data); } catch (err) { con...
null
CC BY-SA 4.0
null
2023-03-03T16:17:49.713
2023-03-03T16:43:19.703
2023-03-03T16:43:19.703
4,472,932
4,472,932
null
75,629,483
2
null
75,619,474
1
null
The code below should do it. What you need to do to update for your purposes is: - - From "Save file" and down should be good to go ``` Sub PDFworksheets() '''''''''''''''''''' 'Purpose: [Purpose] 'Last updated: [Name; Date] '''''''''''''''''''' Dim SavePath As String Dim WsToSave() ...
null
CC BY-SA 4.0
null
2023-03-03T16:17:09.270
2023-03-03T16:27:56.653
2023-03-03T16:27:56.653
6,791,681
6,791,681
null
75,629,488
1
null
null
0
16
I'm trying to write test cases for the interface with default method Interface: ``` public interface XYZConverter <D extends DomainClass, E Extends EntityClass>{ E createFrom(D dto); E updateEntity(E entity, D dto); default dtos.stream().map(this::createFrom).collect(Collectors.toList()); } ``` and my tes...
Writing Test case for Generic interface with default method
CC BY-SA 4.0
null
2023-03-03T16:17:43.293
2023-03-03T23:10:57.130
null
null
15,503,193
[ "java", "rest", "unit-testing", "junit", "mockito" ]
75,629,491
2
null
72,045,069
0
null
`register_composite` can optionally take a `factory` parameter. `factory` should be a function that takes as many parameters as fields the custom type defined on your database has. The `factory` takes the fields as arguments and should return a Python object that will replace the `psycopg.types.composite.XXXX` instance...
null
CC BY-SA 4.0
null
2023-03-03T16:17:51.533
2023-03-03T16:17:51.533
null
null
938,530
null
75,629,489
1
75,629,649
null
0
15
Using various options, I'm attempting to build a compound query using `bsoncxx::builder::basic::document` objects. So I can build ``` auto these_guys = bsoncxx::builder::basic::document{}; these_guys.append( kvp("Name", "Smith") ); ``` and ``` auto those_guys = bsoncxx::builder::basic::document{}; those_guys.append( k...
Why am I getting an error when assigning a bsoncxx::document to another bsoncxx::document?
CC BY-SA 4.0
null
2023-03-03T16:17:46.400
2023-03-03T16:33:14.727
null
null
4,717,755
[ "c++", "bson", "mongo-cxx-driver" ]
75,629,487
2
null
75,600,570
1
null
The error you are seeing occurs because `val$Count` and `fc$mean` have different lengths. `val$Count` is a single value, while `fc$mean` is a vector with length . Therefore, when you try to subtract them, you get a length mismatch error. To fix this, you can extract the value of `fc$mean` using `as.numeric(fc$mean)` or...
null
CC BY-SA 4.0
null
2023-03-03T16:17:36.427
2023-03-03T16:17:36.427
null
null
14,992,840
null
75,629,495
1
null
null
0
26
I have tried ribbon plot in R,but my output is not correct ,Can anyone tell whats the problem with my code,thanks in advance [Output for ribbon plot](https://i.stack.imgur.com/MZ7Ir.png) ``` library(tidyr) library(ggplot2) library(dplyr) library(reshape2) library(tidyverse) data = read.csv("Kolkata1.csv") Dates = as.Da...
How to use geom_ribbon in ggplot for ribbon plot in R
CC BY-SA 4.0
null
2023-03-03T16:17:52.973
2023-03-03T17:02:01.627
2023-03-03T17:02:01.627
21,327,224
21,327,224
[ "r", "ggplot2", "geom-ribbon" ]
75,629,498
2
null
4,775,220
0
null
You can create the keys for the user which is running the web-server like ``` sudo -u www-data ssh-keygen ``` that will create the correct keys for that user and save the file in the correct folder just need to copy the keys to the server then you can test it like ``` sudo -u www-data ssh user@server ``` if that conn...
null
CC BY-SA 4.0
null
2023-03-03T16:17:56.543
2023-03-03T16:17:56.543
null
null
12,097,868
null
75,629,493
2
null
75,628,688
0
null
Please try the following solution. ``` <?xml version="1.0"?> <message xmlns="http://www.ns1.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <elem1 id="att1"> <elem2 i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" /> </elem1> </message> ``` ``` <?xml version="1.0"?> <xsl:styleshee...
null
CC BY-SA 4.0
null
2023-03-03T16:17:52.387
2023-03-03T16:17:52.387
null
null
1,932,311
null
75,629,497
1
null
null
0
9
my prior modal worked with alpine alone and it was relatively easy to keep the checkbox (which opens the modal)state in sync via x-ref. Checkbox state was always in sync! The modal can be closed in various ways (escape, click away and cancel button). Now I open the modal via livewire onclick and entangle as shown below...
Livewire & Alpine Modal checkbox state sync with x-ref not working anymore
CC BY-SA 4.0
null
2023-03-03T16:17:54.930
2023-03-03T16:20:05.610
2023-03-03T16:20:05.610
2,515,439
2,515,439
[ "modal-dialog", "laravel-livewire", "alpine.js" ]
75,629,494
1
null
null
0
22
As I tried to managed the [rethrow in a coroutine context](https://stackoverflow.com/questions/75628160/rethrow-exception-in-a-coroutine-context?noredirect=1#comment133424731_75628160), I finally understood that in suspending function [we can use try/catch as usual](https://play.kotlinlang.org/#eyJ2ZXJzaW9uIjoiMS44LjEw...
Why try/catch behavior is different in a coroutine scope and in a simple suspending function (Kotlin)?
CC BY-SA 4.0
null
2023-03-03T16:17:52.460
2023-03-04T06:51:54.353
null
null
6,188,286
[ "kotlin", "exception", "kotlin-coroutines", "coroutine" ]
75,629,502
2
null
75,629,455
0
null
- `async` / `await` uses promises (one future value)- rxjs uses observables where you subscribe to multiple values- `.pipe()``.switchMap()` I guess what you are looking for is these two methods, which gives you a promise from an observable. ``` import { firstValueFrom, lastValueFrom } from 'rxjs'; ```
null
CC BY-SA 4.0
null
2023-03-03T16:19:01.370
2023-03-03T16:19:01.370
null
null
4,529,555
null
75,629,496
1
null
null
0
23
I have tried to rotate the rectangle inside this canvas element, without any working solutions. it seems to always bug out or interfere with other elements. I have tried the following: ``` var rect = document.createElement('canvas'); rect.id = 'canvas'; rect.style.cssText = 'display: block; margin: auto; outline: 1px s...
How would I make a canvas element rotate to face the user's mouse
CC BY-SA 4.0
null
2023-03-03T16:17:53.697
2023-03-03T19:45:26.780
2023-03-03T19:45:26.780
19,538,533
19,538,533
[ "javascript", "mouse" ]
75,629,505
1
null
null
0
9
zio-json is unable to derive an encoder (using DeriveJsonEncoder.gen) for a case class with the @newtype annotation. I'd rather not write even simple custom encoders for the hundreds of such classes we have. Is there any way, perhaps with some implicit conversion (which can be done with circe), to allow use of automati...
zio-json with io.estatico.newtype.macros.newtype
CC BY-SA 4.0
null
2023-03-03T16:19:08.280
2023-03-03T16:19:08.280
null
null
14,459,924
[ "zio", "newtype", "zio-json" ]
75,629,501
1
75,629,610
null
0
37
For example, I have several objects in the same context (code block): ``` Button button; public string FormCaption { get; set; } public List<int> myValues { get; set; } ``` And I have a method that returns vaues for all these objects ``` (string ButtonName, string FormCaption, List<int> SomeValues) MyCoolMethod() {......
Using tuples as multiple assignings for different objects
CC BY-SA 4.0
null
2023-03-03T16:18:49.403
2023-03-03T16:29:16.680
2023-03-03T16:28:46.693
5,015,385
5,015,385
[ "c#", "tuples" ]
75,629,506
2
null
19,410,206
0
null
Since `stringr 1.5.0`, `str_split_i` is available. This function allows one to acess the ith element of a string split. ``` x <- c('aaa_9999_12', 'bbb_9999_20') str_split_i(x, '_', 3) #[1] "12" "20" ```
null
CC BY-SA 4.0
null
2023-03-03T16:19:11.343
2023-03-03T16:19:11.343
null
null
15,881,999
null
75,629,503
2
null
75,629,385
0
null
Bash is not an object-oriented language; trying to make it act like one is a lot of completely unnecessary pain. Registering a new character, then, might be done with a function like: ``` declare -a names hps atks defs declare -A ids add_char() { local name id hp atk def name=$1; hp=$2; atk=$3; def=$4 if [[ ${id...
null
CC BY-SA 4.0
null
2023-03-03T16:19:03.753
2023-03-03T16:31:19.363
2023-03-03T16:31:19.363
4,518,341
14,122
null
75,629,504
1
null
null
0
26
Here are a few details about my setup: Developing on Python Using Paramiko to SSH connect to the Linux (Ubuntu) VM Problem: When I ssh to the VM, I execute commands while part of the commands is opening a subshell. I can't get printed anything from the stdout/stderr of the subshell. ``` def run_command_subshell(ssh, co...
Can't get any stdout messages and prints from subshell
CC BY-SA 4.0
null
2023-03-03T16:19:06.320
2023-03-03T18:01:22.533
2023-03-03T18:01:22.533
11,974,391
11,974,391
[ "python", "linux", "ssh", "paramiko", "subshell" ]
75,629,511
2
null
75,628,377
0
null
`state.cartItems` not `state.itemIndex` in `cartSlice.js` else statement.
null
CC BY-SA 4.0
null
2023-03-03T16:19:46.993
2023-03-03T16:19:46.993
null
null
12,864,642
null
75,629,500
1
null
null
0
14
I need to find out a way to lock an IAM user account after 3 failed login attempts. what i have found/thought of is to have a IAM user policy that if theres 3 login attempts failed in 60 seconds it'll go to a lambda function that will tigger on a cloudwatch event and timeout the user account for 5 mins and after the 5 ...
how to timeout a aws User after 3 failed login attempt
CC BY-SA 4.0
null
2023-03-03T16:18:44.710
2023-03-03T16:18:44.710
null
null
18,665,046
[ "aws-lambda", "amazon-iam", "amazon-cloudwatch" ]
75,629,507
1
null
null
-1
43
This regex "((?:[^()]|.((?R)))+)" is working on Regex101 site but it raises a sintaxException with JAVA matcher. Error: `Caused by: java.util.regex.PatternSyntaxException: Unknown inline modifier near index 14 \((?:[^()]|((?R)))+\)` The "R" seens not accepted by java regex engine. Unfortunately this seems to be the onl...
Regex error in Java "\((?:[^()]|.((?R)))+\)"
CC BY-SA 4.0
null
2023-03-03T16:19:11.663
2023-03-03T17:34:37.140
2023-03-03T16:20:53.303
17,562,044
11,632,352
[ "java", "regex" ]
75,629,499
1
null
null
0
18
Not quite sure what I am doing wrong here. If I try to apply a background color via Tailwind then it doesn't apply the color but if I try to do it via inline style then it works (inline style copied from Tailwind documentation) This does not apply the Background color ''' ``` <!DOCTYPE html> <html lang="en"> <head> ...
Background color doesnt apply with Tailwind but work with inline style
CC BY-SA 4.0
null
2023-03-03T16:18:32.463
2023-03-04T09:37:18.097
null
null
11,663,542
[ "html", "tailwind-css" ]
75,629,508
1
null
null
-2
29
I`m using Vue 3 with Compostion API. I have a Pinia store with all needed requisites. It initialised like this: ``` export const useCurrentDocument = defineStore('currentDocument', { state: (): IDocument => ({ id:'', packageInfo: { quantity: '', label: '', marks: [] } }), actions: { s...
Pinia loses its reactivity while using in component
CC BY-SA 4.0
null
2023-03-03T16:19:25.123
2023-03-03T18:50:53.823
2023-03-03T16:43:07.433
13,711,079
13,711,079
[ "typescript", "vuejs3", "vue-composition-api", "pinia" ]
75,629,510
1
null
null
1
39
My task is to run a project from github in Visual Studio. If I try to build the code I get 1626 errors, all of them LNK errors like: ``` LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl QString::~QString(void)" (__imp_??1QString@@QEAA@XZ) ``` I think that it has something to do with the Additi...
How do I know which liberary files I have to set up in my Linker menu in Visual Studio 2022?
CC BY-SA 4.0
null
2023-03-03T16:19:43.267
2023-03-03T16:59:06.567
2023-03-03T16:59:06.567
5,381,023
21,322,578
[ "c++", "visual-studio", "qt", "glut", "glew" ]
75,629,513
1
null
null
-4
20
I opened c file in Xcode but russian symbols keep displaying wrong [https://i.stack.imgur.com/Z9DaO.jpg](https://i.stack.imgur.com/Z9DaO.jpg)) I tried changing different encodings in different text editors, nothing helps
how could file encoding problem be fixed?
CC BY-SA 4.0
null
2023-03-03T16:19:50.817
2023-03-03T16:22:58.443
2023-03-03T16:22:58.443
476
21,327,210
[ "xcode", "macos" ]
75,629,517
2
null
75,607,476
0
null
As I really need help I'd like to push my answer.
null
CC BY-SA 4.0
null
2023-03-03T16:20:04.007
2023-03-03T16:20:04.007
null
null
21,313,767
null
75,629,509
1
null
null
0
7
For integration tests on a Azure Devops Pipeline we start the CosmosDbEmulator with the following task (just before dotnet test). ``` - task: PowerShell@2 displayName: "Starting Cosmos Emulator for Integration Tests" inputs: targetType: "inline" workingDirectory: $(Pipeline.Workspace) script: ...
Running CosmosDB Emulator in Azure Pipeline is very slow
CC BY-SA 4.0
null
2023-03-03T16:19:27.540
2023-03-03T16:55:19.183
2023-03-03T16:55:19.183
903,124
903,124
[ "azure-devops", "azure-pipelines-yaml", "azure-cosmosdb-emulator" ]
75,629,512
2
null
60,832,201
0
null
I recently found this question while looking for an answer to the same question, thanks for all the suggestions. I found 3 more detectors. picovoice is by far better then webrtc. speechbrain and nvidia don't support real-time which kinda sucks -picovoice cobra: [https://picovoice.ai/docs/cobra/](https://picovoice.ai/do...
null
CC BY-SA 4.0
null
2023-03-03T16:19:47.167
2023-03-03T16:19:47.167
null
null
21,327,314
null
75,629,522
2
null
75,629,423
1
null
You can define a method that receives the the two values you want to concatenate and returns the result: ``` import pandas as pd # create example dataframe df = pd.DataFrame({'column_1': ['abc', 'def', 'ghi'], 'column_2': [123, 456, 789]}) # define function to concatenate two values with an underscore def concatenate...
null
CC BY-SA 4.0
null
2023-03-03T16:20:47.940
2023-03-03T16:20:47.940
null
null
11,196,494
null
75,629,521
1
null
null
0
5
I'm trying to create a set, or a list containing phone numbers only if column1 = True. I'm not sure if this is how tableau works, I'm thinking the python way where you append phone numbers to the list given the condition. this is a call records, my dataset looks like this phoneNumber condition 1111111111 True 22222222...
Tableau Creating a set of phone numbers with a condition
CC BY-SA 4.0
null
2023-03-03T16:20:45.900
2023-03-03T16:20:45.900
null
null
16,248,542
[ "list", "conditional-statements", "tableau-desktop" ]
75,629,518
1
null
null
0
28
After learning the basics I wanted to create a simple text game, so it would fit to create a menu, but I decided to do it a little more "professionally" using enum, someone can tell if this is pretty much ok and will it be possible to call it meaningfully later in the script? Because currently I don't know how to sensi...
Python - How to create menu class with enum
CC BY-SA 4.0
null
2023-03-03T16:20:21.057
2023-03-03T16:23:26.363
2023-03-03T16:23:26.363
21,327,060
21,327,060
[ "python", "python-3.x", "class", "oop", "menu" ]
75,629,519
1
null
null
0
13
I have this relationship between Trainer and Client in my JPA entities: ``` @Entity @Table(name = "TRAINER") @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id") public class Trainer { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; @OneT...
Spring JPA - when deleting owner of relationship do not attempt to delete inverse side?
CC BY-SA 4.0
null
2023-03-03T16:20:31.650
2023-03-03T16:20:31.650
null
null
12,268,910
[ "java", "hibernate", "jpa", "spring-data-jpa", "foreign-keys" ]
75,629,514
1
null
null
-1
24
Running wget or curl on OS X succeeds. It is only problematic in the guest OS, and intermittently works on small enough https downloads. No issues with http. Here is an example of the problem: ``` $ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --2023-03-02 13:09:28-- https://repo.anaconda...
Decryption failed using wget/curl on Centos 8 in VMWare Fusion 13 OS X host
CC BY-SA 4.0
null
2023-03-03T16:19:51.400
2023-03-05T02:51:39.517
2023-03-05T02:45:55.230
5,578,845
5,578,845
[ "curl", "wget", "centos8" ]
75,629,515
1
null
null
0
4
I'm trying to add an additional point by clicked the model surface in markup3d sample, but the point is drifted from the originally clicked point. I really appreciate if you support me. [https://aps.autodesk.com/blog/3d-markup-icons-and-info-card](https://aps.autodesk.com/blog/3d-markup-icons-and-info-card) - [https:...
Added mark is shifted from the originally clicked point in markup3D sample. How to fix
CC BY-SA 4.0
null
2023-03-03T16:19:52.807
2023-03-03T16:19:52.807
null
null
10,702,129
[ "autodesk-forge", "autodesk-viewer", "autodesk" ]
75,629,516
1
75,629,648
null
0
12
I am trying to change the content of the Scaffold body from the side drawer in Flutter. I am using different files to store the side navigation bar and new body contents. I have created a separate file with a class NavigationController, which contains a static variable for the widget to be displayed in the body of the ...
Flutter change scaffold body from side drawer
CC BY-SA 4.0
null
2023-03-03T16:20:01.447
2023-03-03T16:33:14.393
null
null
21,037,446
[ "flutter", "navigation-drawer" ]
75,629,523
2
null
34,529,565
0
null
I had a similar issue working with jmeter maven plugin. In my case, because I was using about 15 third part plugins for integration jmeter<->maven, I had the need to build and install those plugins separately in a local repository, different by default repository of maven: ${user.home}/.m2/repository, and then I had to...
null
CC BY-SA 4.0
null
2023-03-03T16:20:47.980
2023-03-03T16:20:47.980
null
null
7,007,737
null
75,629,527
2
null
75,629,116
0
null
It's a little outdated but you can try [https://github.com/aparrish/gutenberg-dammit](https://github.com/aparrish/gutenberg-dammit) ``` from gutenbergdammit.ziputils import searchandretrieve for info, text in searchandretrieve("gutenberg-dammit-files-v002.zip", {'Title': 'Made Easy'}): print(info['Title'][0], len(t...
null
CC BY-SA 4.0
null
2023-03-03T16:21:20.000
2023-03-03T16:21:20.000
null
null
610,569
null
75,629,529
1
75,629,983
null
1
23
I am looking for a sequence formula. The sequence is {1,5,18, 56,160,432}. I tried using wolframs mathematica - FindSequenceFunction and FindGeneratingFunction. First one did not even give me a function, second one gave me 1-n/(1-2n)^3 which i dont see how this can be right. Maybe I dont understand mathematica properly...
How to find sequence formula
CC BY-SA 4.0
null
2023-03-03T16:21:25.273
2023-03-04T21:15:55.043
null
null
18,443,133
[ "sequence", "wolfram-mathematica", "wolfram-language" ]
75,629,530
2
null
75,478,620
0
null
I found answer: 1. Install CsvHelper plugin through NuGet 2. Install SpecFlow.ExternalData plugin through NuGet I was inattentive and did not notice these two links. In addition, the colors on the official website are rather pale. BUT, it helped me
null
CC BY-SA 4.0
null
2023-03-03T16:21:30.513
2023-03-03T16:21:30.513
null
null
12,127,775
null
75,629,526
1
null
null
0
6
I have a query that gets a pipeline builds and its divided by the number of change request open in a 1 month window, which gives a percentage. Although, sometimes the values for project_id doesn't exist, but still end up showing up as one. I believe it's the logic that it's written, but is there any conditions that can...
Prometheus query check if value exist
CC BY-SA 4.0
null
2023-03-03T16:21:14.103
2023-03-03T16:21:14.103
null
null
12,427,226
[ "prometheus", "promql", "victoriametrics" ]
75,629,524
2
null
75,627,124
0
null
You could plot twice: once for the lines and once for the markers (`style=` refers both to linestyle and to markers). `markers=None` suppresses the markers. The linestyles are a bit more stubborn, to suppress them, `dashes=[...]` can be set to lines of 0 long with gaps of 1. This creates a double legend. Counting the...
null
CC BY-SA 4.0
null
2023-03-03T16:20:50.560
2023-03-03T16:20:50.560
null
null
12,046,409
null
75,629,520
2
null
75,628,585
0
null
You are cluttering up with way too many lines of code... This is a typical use case for event delegation (widely explained on StackOverflow), whicth allow you to add as many questions/answers, without worrying about assigning unnecessary IDs to them. I also added a feature to keep only one question/answer open at a tim...
null
CC BY-SA 4.0
null
2023-03-03T16:20:45.883
2023-03-03T21:09:47.013
2023-03-03T21:09:47.013
10,669,010
10,669,010
null
75,629,534
2
null
75,625,948
0
null
It works in the dropdown because it contains a default slot (`<slot />` without a name attribute). [According to MDN](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots#adding_flexibility_with_slots): > An unnamed will be filled with all of the custom element's top-level child nodes ...
null
CC BY-SA 4.0
null
2023-03-03T16:21:38.693
2023-03-03T16:21:38.693
null
null
1,242,317
null
75,629,537
2
null
75,431,915
0
null
Check out the `branding` parameters in `flutter_native_splash`, that will allow you to add the lower image you indicate in your attached image.
null
CC BY-SA 4.0
null
2023-03-03T16:21:50.540
2023-03-03T16:21:50.540
null
null
8,371,825
null
75,629,528
1
null
null
1
15
I want to change the information of this section in Chrome for my traffic robot, but no changes are made. How can I change these parameters? My code is written based on Selenium 4. According to the following address, I want to break the --user-agent limit and change other header parameters in Selenium so that the traff...
how to change sec-ch-ua-platform in selenium4 with c#
CC BY-SA 4.0
null
2023-03-03T16:21:21.590
2023-03-03T22:21:28.927
2023-03-03T22:21:28.927
2,917,416
2,917,416
[ "c#", "google-chrome", "selenium-webdriver" ]
75,629,538
2
null
65,835,578
0
null
make the following code change ``` WNDCLASS wc = { }; wc.lpfnWndProc = MsgProc; wc.hInstance = hInstance; wc.lpszClassName = CLASS_NAME; ``` this solved my problem
null
CC BY-SA 4.0
null
2023-03-03T16:22:00.790
2023-03-03T16:22:00.790
null
null
21,327,324
null
75,629,535
1
null
null
0
19
I am trying to use three different threshold methods on my data, utilizing the [multiverse package](https://cran.r-project.org/web/packages/multiverse/readme/README.html). I have boiled down the code to a reproducible example: ``` #import packages library(multiverse) library(pracma) # for findpeaks function # create r...
Failing to create several conditions in the 'multiverse' package in R
CC BY-SA 4.0
null
2023-03-03T16:21:44.597
2023-03-03T17:22:58.193
null
null
13,549,735
[ "r" ]
75,629,539
2
null
75,626,584
0
null
Did you try to use our pre-built NuGET packages? [https://gitlab.linphone.org/BC/public/linphone-sdk/-/packages](https://gitlab.linphone.org/BC/public/linphone-sdk/-/packages) See the wiki entry that explains how to get started: [https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Getting%20started/Windows%20UWP/](htt...
null
CC BY-SA 4.0
null
2023-03-03T16:22:01.517
2023-03-03T16:22:01.517
null
null
1,746,805
null
75,629,532
1
null
null
0
16
I am working on angular version 9.0.2 project. I just want to add MapBox GL plugging to my application. I tried this command. Also I want to know using this command can I use typescript for mapbox. ``` npm install --save mapbox-gl ``` But when I tried to install it I got below mention error message. ``` npm ERR! code ...
How to install Maxbox GL to Angular version 9.0.2 project
CC BY-SA 4.0
null
2023-03-03T16:21:33.027
2023-03-04T08:18:42.797
null
null
21,240,143
[ "mapbox", "mapbox-gl-js" ]
75,629,540
1
75,629,589
null
0
40
My table in SQL has a column with persons name and surname like "Mike Baldwin", "Sara Larson" etc. and need to output all the persons whose name starts with "M" or surnames second last letter is "i". How do I write it in script file? So I made this script : ``` SELECT * WHERE CLIENT LIKE 'M%' OR CLIENT LIKE '%i_' ``` ...
Need to select people whose name starts with "M" or the second from the end letter of the last name is "i"? The column has persons name, surname
CC BY-SA 4.0
null
2023-03-03T16:22:20.667
2023-03-03T17:11:11.307
2023-03-03T16:24:23.727
205,233
17,152,341
[ "sql", "oracle", "sql-like" ]
75,629,525
1
null
null
-1
51
``` def LCIS(A, B): n = len(A) m = len(B) # Initialize the dynamic programming table dp = [[0] * (m + 1) for _ in range(n + 1)] # Fill the table for i in range(1, n + 1): max_len = 0 for j in range(1, m + 1): if A[i-1] > B[j-1]: dp[i][j] = dp[i-1][j] else: dp[i][j] = ma...
Not getting Output as expected in Longest Common Increasing Sequence problem
CC BY-SA 4.0
null
2023-03-03T16:21:04.907
2023-03-03T16:23:04.673
2023-03-03T16:23:04.673
21,327,239
21,327,239
[ "python", "algorithm", "data-structures", "dynamic-programming" ]
75,629,543
1
null
null
0
11
I am working with an API that sends the response as octet-stream. I am calling the API using Web activity in ADF. Now this response has to be saved in the ADLS file, could be either in csv or json format. Is there any possible way to do this. I am not at all familiar with this octet-stream types, so any help regarding ...
Copy response body which has content type as octet-stream using ADF
CC BY-SA 4.0
null
2023-03-03T16:22:41.680
2023-03-03T16:22:41.680
null
null
9,636,197
[ "azure", "azure-data-factory", "octet-stream" ]
75,629,531
2
null
61,282,059
0
null
This works for me ``` # ############### # From: https://core.tcl.tk/tk/info/509cafafae def fixed_map(option): # Fix for setting text colour for Tkinter 8.6.9 # # Returns the style map for 'option' with any styles starting with # ('!disabled', '!selected', ...) filtered out. # # style.map() retur...
null
CC BY-SA 4.0
null
2023-03-03T16:21:30.787
2023-03-03T16:21:30.787
null
null
5,030,679
null
75,629,536
2
null
75,629,024
0
null
You can achieve this by having a parent component that controls both state and the function that will change the state. In my example I'll show how I did it. I created a function `handleButtonClick()` on the `App` component. Whenever its called, it will find my selected item and update its quantity by adding it 1. I pa...
null
CC BY-SA 4.0
null
2023-03-03T16:21:45.923
2023-03-03T16:21:45.923
null
null
6,491,803
null
75,629,541
1
75,630,633
null
0
17
I have two unity projects open and I just noticed that the inspector for the camera object is different between the two. The Picture below shows inspector of both projects. I am used to the inspector on the left from tutorials. Is there a reason why the inspector on other project looks different ? I want to change "cle...
Can't find "clear flags" option in the camera's inspector
CC BY-SA 4.0
null
2023-03-03T16:22:32.433
2023-03-03T18:25:26.970
2023-03-03T16:31:31.240
368,519
19,880,393
[ "unity3d", "game-engine", "game-development", "unity3d-editor" ]
75,629,544
2
null
73,172,622
0
null
i was having a similar problem after mutating it, fixed by calling ``` mutate([]) ``` instead of ``` mutate() ```
null
CC BY-SA 4.0
null
2023-03-03T16:23:01.687
2023-03-03T16:23:01.687
null
null
14,469,974
null
75,629,545
2
null
70,125,051
0
null
I've had good results with Linux perf. It can measure all IO activity for time and take stack traces. I haven't used it with java, but I'm reading that if you compile with `-XX:+PreserveFramePointer` the stack traces and symbols will work.
null
CC BY-SA 4.0
null
2023-03-03T16:23:04.007
2023-03-03T16:23:04.007
null
null
1,944,458
null
75,629,552
1
null
null
0
21
Of course, as we all know, determining slippage for a certainty is impossible. I've done my best in my code to reduce my impact on slippage, finding the largest amount across the two pools in my arbitrage that can be withdrawn without exceeding a 1% price impact. But I'm having trouble finding a resource that I can ta...
How to get a bead on ethereum uniswap slippage before committing to a transaction?
CC BY-SA 4.0
null
2023-03-03T16:23:48.093
2023-03-03T19:40:56.020
2023-03-03T17:10:07.150
2,756,409
20,509,822
[ "javascript", "ethereum", "blockchain", "web3js" ]
75,629,546
2
null
75,576,741
0
null
I solved it on by defining the following vite config's options: - `optimizeDeps.esbuildOptions.target`- `optimizeDeps.global`- `optimizeDeps.esbuildOptions.supported.bigint`- `build.target` ``` import { defineConfig } from "vite"; // import react, svelte and other needs... // https://vitejs.dev/config/ export defaul...
null
CC BY-SA 4.0
null
2023-03-03T16:23:20.117
2023-03-03T17:36:16.640
2023-03-03T17:36:16.640
774,432
774,432
null
75,629,553
2
null
75,629,166
1
null
``` self.browser.find_element(By.XPATH, '//button[@class="_acan _acap _acas _aj1-"]').click() ``` Replace this with the one appearing in your error. And a tip, don't use time.sleep to wait for page to load, you should use WebdriverWait module, that waits for a maximum period of time for the element to appear, but whe...
null
CC BY-SA 4.0
null
2023-03-03T16:23:49.193
2023-03-03T16:23:49.193
null
null
20,959,773
null
75,629,551
1
null
null
0
10
I am exploring the GDELT API ([GDELT-API](https://blog.gdeltproject.org/gdelt-doc-2-0-api-debuts/)) and noticed that it allows me to search for news articles based on keywords, and returns information such as the article URL, date, and title. However, I have encountered a limit on the number of articles that can be sea...
Need help finding the right tables to search news articles by keywords with GDELT and Google Big Query
CC BY-SA 4.0
null
2023-03-03T16:23:45.430
2023-03-03T16:23:45.430
null
null
11,923,336
[ "google-bigquery", "gdelt" ]
75,629,548
2
null
75,627,327
3
null
> Is there a way to fix this problem so that my excel sheets has numbers instead of text? The way to do that is to convert the text to numbers in pandas prior to exporting the dataframe to Excel. It looks like you are trying to do that but I think the % that is added to the strings is preventing a numeric conversion. H...
null
CC BY-SA 4.0
null
2023-03-03T16:23:30.330
2023-03-03T19:47:10.300
2023-03-03T19:47:10.300
10,238
10,238
null
75,629,550
1
75,630,113
null
0
18
I've got a project that has sources in the local subdirectories and also sources in the SDK, which is in the different location. All object files need to be built in the project's build directory tree, and the sources from the SDK need to be placed in the `$(OUTPUT_DIR)/sdk`. And I need a generic way to deal with all t...
Makefile pattern with replacement doesn't capture non-local sources
CC BY-SA 4.0
null
2023-03-03T16:23:45.370
2023-03-03T17:21:55.927
2023-03-03T16:30:06.673
8,072,174
8,072,174
[ "makefile", "gnu-make" ]
75,629,556
2
null
75,628,564
1
null
You can use a dual condition in `filter()`: ``` library(dplyr) df %>% filter(!if_all(V1:V3, ~ .x %in% c(12, NA)) | if_all(V1:V3, ~ is.na(.x))) # V1 V2 V3 V4 V5 # 1 NA 55 21 NA NA # 2 NA NA NA NA 18 # 3 12 14 NA NA NA ```
null
CC BY-SA 4.0
null
2023-03-03T16:24:00.310
2023-03-03T16:24:00.310
null
null
10,068,985
null
75,629,557
1
null
null
-4
14
Checkbox is not showing password on Enabling it? I am excepting a correct answer hope any one help me
How to add checkbox using Css and html to hide and show password
CC BY-SA 4.0
null
2023-03-03T16:24:00.177
2023-03-03T16:24:00.177
null
null
21,327,318
[ "html", "css" ]
75,629,542
1
null
null
0
13
I have XMLs where some elements must be present 0 or 1 times, others can occur 0..many times. Example: A Person element can have 'firstName'(0..1), 'lastName'(0..1), Pet(0..m), Address(0..m) The order of any of those is not predictable. Example of valid XML: ``` <Person> <Pet>Cat1</Pet> <Address>addres 1 bla bl...
XSD schema to validate number of occurences of child elements but not its order
CC BY-SA 4.0
null
2023-03-03T16:22:34.520
2023-03-03T17:11:38.260
null
null
4,847,170
[ "xml", "xsd" ]
75,629,559
1
null
null
0
14
I want to create string that has greater than symbol as part of the concatenation. declare @maxWeek int = 53 declare @weekno int = 4 declare @mysql varchar(max) set @mysql = 'select CASE WHEN ' + @weekno + > + @maxWeek + ' THEN @maxWeek Else @weekNo END' exec (@mysql) Msg 102, Level 15, State 1, Line 5 Incorrect syntax...
How to use greater than Symbol > as part of the string
CC BY-SA 4.0
null
2023-03-03T16:24:13.387
2023-03-03T16:42:11.630
2023-03-03T16:42:11.630
21,326,788
21,326,788
[ "string" ]
75,629,554
2
null
75,355,104
0
null
From my understanding, this happens if you put the shadow on a wrapper component that doesn't have a visible property (e.g. background color), the shadow instead gets calculated based on the child component, thus making it less efficient. The solution is to simply move the shadow to a new style property and pass it to ...
null
CC BY-SA 4.0
null
2023-03-03T16:23:49.257
2023-03-03T16:23:49.257
null
null
9,296,343
null
75,629,555
2
null
75,625,618
0
null
The problem is that `some` always returns `false` on an empty array: ``` console.log([].some(() => true)); ``` So you'll have to add another check with `||` (OR): ``` placements: Yup.object() .required("Plassering må velges") .test("is-valid", "Minst en plassering må velges", (placements) => Object.k...
null
CC BY-SA 4.0
null
2023-03-03T16:23:59.130
2023-03-03T16:23:59.130
null
null
18,244,921
null
75,629,564
2
null
75,619,548
0
null
I used a try catch as suggested, like this: ``` try { connection.Open(); } catch (Exception e) { Debug.WriteLine(e); } ``` And got this SSL trust error here: [Microsoft SQL Server: SSL Provider, error: 0](https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/error-message-when-you-connect) To fix ...
null
CC BY-SA 4.0
null
2023-03-03T16:24:47.200
2023-03-03T16:24:47.200
null
null
18,228,665
null
75,629,561
2
null
32,859,617
0
null
An alternative to the [accepted answer](https://stackoverflow.com/a/32882755/4691224), you can configure the `NSShadow` before assigning it. The [documentation](https://developer.apple.com/documentation/appkit/nsview/1483263-shadow#discussion) says, as some folks have already pointed out: > If the view does not have a ...
null
CC BY-SA 4.0
null
2023-03-03T16:24:23.760
2023-03-03T16:24:23.760
null
null
4,691,224
null
75,629,563
2
null
75,621,876
0
null
I'm not familiar with Metaworld, but in principle some computation (e.g., kinematics) is needed between writing a new value into the state vector and calling the render function. If neither `set_state` nor `render` call these functions, this would explain the failure mode you've hit. Try to call `env.step` before call...
null
CC BY-SA 4.0
null
2023-03-03T16:24:35.080
2023-03-03T16:24:35.080
null
null
21,327,344
null
75,629,560
2
null
75,629,476
0
null
For that purpose you must not use a `@RabbitListener`, but rather a dedicated API for on-demand receive. See `RabbitTemplate`: ``` /** * Receive a message if there is one from a default queue. Returns immediately, * possibly with a null value. * * @return a message or null if there is none waiting * @throws AmqpEx...
null
CC BY-SA 4.0
null
2023-03-03T16:24:19.067
2023-03-03T16:24:19.067
null
null
2,756,547
null
75,629,558
1
null
null
0
14
I've written a complex webscraper in a notebook that takes a long time to run. I have started using databricks, and i want to run this script in my databricks cluster, so that I can run the scraper without relying on my local server. However, I'm not able to set up the environment correctly. There are many stack overfl...
Environment management in databricks for chromedriver w/selenium
CC BY-SA 4.0
null
2023-03-03T16:24:09.833
2023-03-03T16:24:09.833
null
null
5,213,053
[ "python", "selenium-webdriver", "selenium-chromedriver", "databricks" ]
75,629,567
2
null
75,625,867
0
null
Looks like the problem is really connected with this note: > Note that the consumer performs multiple fetches in parallel. I've played with cluster of two brokers and there still were errors, but the resulting size has became smaller. With a single broker `poll` worked as expected according to the limit set in `fetch.m...
null
CC BY-SA 4.0
null
2023-03-03T16:25:03.867
2023-03-03T16:25:03.867
null
null
4,070,983
null
75,629,573
2
null
75,629,383
1
null
This output will order the columns alphabetically, with capitalized entries coming first: ``` df %>% arrange(col1) %>% arrange(tolower(col1)) #> col1 #> 1 A #> 2 B #> 3 b #> 4 C #> 5 c ```
null
CC BY-SA 4.0
null
2023-03-03T16:25:26.357
2023-03-03T16:25:26.357
null
null
21,227,705
null
75,629,570
2
null
72,331,060
0
null
Please instead of ButtonAction::make()
null
CC BY-SA 4.0
null
2023-03-03T16:25:13.077
2023-03-03T16:25:13.077
null
null
9,721,386
null
75,629,565
1
null
null
0
21
I am facing a strange issue while running my REST API server on Kubernetes. The requests that take a long time to complete, e.g. a 14-minute request, never return while everything works fine when I run the same Docker image locally or for shorter requests (5 minutes) on kubernetes. I have confirmed that the server fini...
Long requests (14 minutes) to REST API server on Kubernetes never return, no error, no nothing. Works on local docker
CC BY-SA 4.0
null
2023-03-03T16:24:52.930
2023-03-03T16:24:52.930
null
null
3,565,061
[ "kubernetes", "google-kubernetes-engine", "gke-networking" ]
75,629,568
1
null
null
0
9
I use the `Docker@2` ADO task, but I am cheating. `docker` is a symbolic link to `podman`. Hence it is `podman` that runs at the end of the day. I am able to build and push images just fine, however, when pushing images the following error is emitted, which does fail the task: ``` /usr/bin/docker history --format crea...
createdAt:Error: template: history:1:23: executing "history" at <.CreatedAt>: can't evaluate field CreatedAt in type images.historyReporter
CC BY-SA 4.0
null
2023-03-03T16:25:09.260
2023-03-03T16:25:09.260
null
null
80,002
[ "docker", "azure-devops", "azure-pipelines", "podman" ]
75,629,572
1
null
null
0
22
I want to view (not download) on my frontend a file saved in my backend server. Controller('documents') on my Nest app (Typescript) : ``` @Get(':id') async seeUploadedFiled( @Param('id') id:number, @Res() res ) { res.set({"Content-Type": "arraybuffer"}) this.service.getDocument(i...
PDF File is empty when reading file
CC BY-SA 4.0
null
2023-03-03T16:25:25.210
2023-03-03T16:44:00.147
2023-03-03T16:44:00.147
21,327,250
21,327,250
[ "node.js", "reactjs", "typescript" ]
75,629,566
1
null
null
0
17
As for question, I have an `ObservableCollection` of objects, declared in a `UserControl` and `binded` to an `ItemsControl.ItemsSource`. Its properties are updated during the software run, eventually. I would like to catch the update event. I tried using the `CollectionChanged` event, but it isn't fired. The collection...
Set event on object's parameter updated in observable collection
CC BY-SA 4.0
null
2023-03-03T16:24:54.670
2023-03-03T16:39:32.187
2023-03-03T16:39:32.187
1,136,211
893,572
[ "c#", "wpf", "data-binding", "observablecollection", "inotifycollectionchanged" ]
75,629,581
2
null
75,570,831
0
null
My problem was a lack of understanding of how the az command works against Azure. It submits a http Patch request to the Azure api that presents the collection of oauth2PermissionScopes. If any of these scopes currently exist in an active state, they must first be disabled or an error will be raised.
null
CC BY-SA 4.0
null
2023-03-03T16:26:05.843
2023-03-03T16:26:05.843
null
null
41,169
null
75,629,575
1
null
null
0
9
Computing the execution time with `process_time_ns()` on Windows 10 with Python 3.10.8 suggests that the function is broken because execution times computed by it exceed significantly the executions times computed by `perf_counter_ns()`. The code below: ``` # OMISSIS for m in fbs: # PREPARATION FOR CALL ...
Does the Python time.process_time() function work properly on Windows?
CC BY-SA 4.0
null
2023-03-03T16:25:49.150
2023-03-03T16:25:49.150
null
null
1,283,889
[ "python", "windows", "performance", "time" ]
75,629,585
1
null
null
-1
24
I have a table that looks like ``` { a = 1, b = 2, c = 3, } ``` And I'd like to move this table, while retaining all its values, into a sub-table within the existing table, so it looks like: ``` { letters = { a = 1, b = 2, c = 3, }, otherStuff = {} } ``` Is there any easy way to do this? Thank...
Lua: moving table values into a sub table
CC BY-SA 4.0
null
2023-03-03T16:26:18.777
2023-03-03T18:03:49.737
null
null
5,539,171
[ "lua", "lua-table" ]
75,629,578
1
75,629,878
null
0
11
I'm trying to plot shapefiles in R using `ggplot2` and `sf` to call `geom_sf` but it's throwing errors that I can't seem to work around. I am able to plot the SpatialPolygonsDataFrame without issue using `plot()` but I'd like to work with `ggplot` and `geom_sf` if possible. The shapefiles can be found here: [https://da...
trouble plotting shapefiles in R with geom_sf
CC BY-SA 4.0
null
2023-03-03T16:26:01.890
2023-03-03T16:56:47.610
null
null
6,558,987
[ "r", "ggplot2", "spatial", "shapefile" ]
75,629,582
2
null
75,500,284
0
null
I was trying to reach my app from a different pc on the same local network. As far as I can tell Vite denies access to its host by default. Also, it tells us: > Network: use --host to expose So I added `--host` flag into scripts in the package.json file as below: ``` "scripts": { "dev": "vite --host", "build": ...
null
CC BY-SA 4.0
null
2023-03-03T16:26:06.790
2023-03-03T18:44:36.907
2023-03-03T18:44:36.907
1,109,612
20,053,111
null
75,629,584
1
null
null
0
9
I am trying to install the language server package in R/3.6.0 on a remote linux computer. The instructions I received from the sysadmin ask to follow the following steps: ``` module load R/3.6.0 module load gcc/10.2 module load openssl/3.0.0 R > install.packages("remotes") > library(remotes) > remotes::install_github...
Getting language server to work: installing `remotes` package
CC BY-SA 4.0
null
2023-03-03T16:26:17.977
2023-03-03T16:26:17.977
null
null
20,321,217
[ "r", "installation", "remote-server" ]