instruction
stringlengths
0
30k
I'm analyzing phylogenetic signal in binary trait data (presence/absence of a gene) across different subsets of a phylogenetic tree. My goal is to calculate Pagel's lambda for these subsets to compare phylogenetic signal strengths under different conditions. While the full dataset works fine, I'm encountering errors wh...
Try with a below code snippet that has prefix and suffixicon in a textformField Don't forget to make necessary changes as per requirement. Create a Textfield widget like this: import 'package:flutter/material.dart'; import 'package:row_nation/Utils/app_colors.dart'; import 'package:row_nation/Uti...
I'm running an MPI job on a SLURM/DMTCP/MPICH stack, but the execution is never completed, hitting the time limit and never starting the MPI program execution. The output file is this: ``` SLURM_JOBID=4 SLURM_JOB_NODELIST=node [1-2] SLURM_NNODES=2 SLURMTMPDIR= work ing directory = #homermanager slurmstepd-node...
Job's output on slurm is "HYDU_sock_write: write error (Bad file descriptor)"
|slurm|mpich|sbatch|
I just swapped the `google-services.json` and `GoogleService-Info.plist` with editor tooling. 1. Create a folder named `FirebaseAppConfigurations` in the same level as the `Assets` folder. 2. Create subfolders for each environment in `FirebaseAppConfigurations`. Each environment should have its own Firebase projec...
Try with a below code snippet that has prefix and suffixicon in a textformField Create a Textfield widget like a below: import 'package:flutter/material.dart'; import 'package:row_nation/Utils/app_colors.dart'; import 'package:row_nation/Utils/app_font_size.dart'; import 'package:row_nation/U...
I am retired aerospace engineer. Never used Python, just picking it up on the fly. Not a programmer either. Using Visual Studio to write a propeller performance analysis code using Blade Element Momentum Theory. This requires using a free, available online, external code called XFOIL. I have actually made a lot o...
As an exercise for learning rust, I want to implement a pokemon-style elemental-type-matchup program (for the sake of implementation, I'm only going to have 8 elemental-types). I want to be able to reference each ElType as named constants. I want all these definitions to be constexprs, not initted at runtime, so ...
init a const array with heterogenous data in rust
|rust|
I've also run into that issue while upgrading from spring boot 3.2.2 to 3.2.3 (and 3.2.4) It looks like there is the same problem with hibernate > 6.4.2.Final. I think this is somehow related: https://hibernate.atlassian.net/browse/HHH-17883
It's a bug. Microsoft fixed this problem in .Net 8.0.2. The relevant issue ticket is https://github.com/dotnet/aspnetcore/issues/52126 if you're interested.
``` { "errors": { "": [ "A non-empty request body is required." ], "loginRequest": [ "The loginRequest field is required." ] }, "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title": "One or more validation errors occurred...
You can't put a file upload inside JSON. You should send the JSON in a separate parameter. ``` let obj = { "field1":"test", "field2","test", "childObj": [ {"field1":"test","field2":"test"}, {"field1":"test","field2":"test"}, {"filed1":"test","field2":"test"} }] }; let form_data = ...
I have a simple program whose task is to read the graph description from a file and return the values. file.txt: 4 5 1 2 2 3 3 4 1 4 2 4 where 4 represents the number of vertices of the graph, and 5 represents the number of edges of graph G (so I don't want to show that) ``` f = open('file.txt'...
Data loaded from the file is not returned in the correct order
|python|python-3.x|file|file-io|
null
I am reading a 10 mins Audio file from S3, but I want to say take first x seconds only as byte stream and do some speech analytics (cutting it due to API limitations of downstream model) Code: s3_bucket = 'llm-test-tmp' key_prefix = "training-datasets/asr_notebook_data" input_audio_file_name = 'au...
How to take first x seconds of Audio from a wav file read from AWS S3 as binary stream using Python?
|python|amazon-web-services|amazon-s3|audio|byte|
The most important difference will be the *clarity* of your code. Yes, yes, what's been said above is true, but **[[ ]]** brings your code in line with what you would expect in high level languages, especially in regards to AND (**&&**), OR (**||**), and NOT (**!**) operators. Thus, when you move between systems and la...
I would add something more to the [answer][1]. To get all options for the resources that are in defined providers you can use command: terraform providers schema -json Part of the output from this command: "google_storage_bucket_iam_member": { "version": 0, "block": { "attributes...
Challenges with Fitting PGLS Models on Binary Trait Subsets Using caper in R
|r|phylogeny|
null
Statement 1 counts all the equal courses. E.g. for student A having a `'Math'` course, it counts all the `'Math'` courses because of the condition in the sub-select `c.class = Courses.class`, where `Courses` denotes the current record of the parent select. Statement 2 counts all the courses because there is no condi...
I know this is an old question but I just hit the same issue. For me at least, the issue was that I had `gulp-cli` installed globally but `gulp` installed locally. I'd updated the local instance but not the global one. Updating the global `gulp-cli` fixed the issue.
You should provide `checkboxUncheckedValue` property with suitable value for your case. For example $("#frm").serializeJSON({checkboxUncheckedValue: "false"}) Check the doc for more details https://github.com/marioizquierdo/jquery.serializeJSON?tab=readme-ov-file#include-unchecked-checkboxes
Add Sheets From Excel Table (`ListObject`) ------------------------------------------ [![enter image description here][1]][1] **Usage** <!-- language: lang-vb --> Sub AddSheetsFromListObjectTEST() Dim wb As Workbook: Set wb = ThisWorkbook ' workbook containing this code Dim ...
When I tried running amplify configure in my React project, I received an error message saying "Pkg: Error reading from file". I attempted to uninstall and reinstall @aws-amplify/cli, but this did not resolve the issue. [error message](https://i.stack.imgur.com/SvJb7.png) I tried to delete the node modules, but i...
Amplify command is giving error reading from file error
|amazon-web-services|
null
I want to know if there exist an api which would give all the groups(direct and indirect/nested) for a user. groups.list seems to only give direct groups, Is there any api which has this functionality? in the google blog it doesn't say anything for indirect membership.
Does groups.list api in google Admin context, list indirect groups as well?
|google-workspace|google-admin-sdk|
null
I wanted to make a web crawler using requests and ThreadPoolExecutor. My problem is that even though in the while loop I've made a sort of timeout, the program doesn't stop. def StartCrawler(base_link, timeout): Session = requests.Session() LINKS_LIST.put(base_link) HASH_CODES.add(CreateHash(base_...
I loaded promox and didnèt update host had a static ip and could connect once I trying windows 10 to rpi4 window you goto apps add options feature add botth openssh goto rp1 copy ssh/ssh_config paste .ssh/config put it folder says that missing when you do ssh -vvv root@raspberry pi you hvae to do ssh-keygen command in...
```py import cv2 import numpy as np from scipy.interpolate import RBFInterpolator # Load the image image = cv2.imread('image.png') width,height = image.shape[:2] w=width h=height # Your source points and corresponding destination points src_points = np.array([ [0, 0], [w,h], [w,0], [0,...
Actually, I am running wildfly elytron-tool.sh to mask the password.. It is done after the wildfly directory is installed in my node server which is done previous to this step. I want to capture that masked password which is returned from the exec command which can be used later. How to achieve that . Please help me w...
Way to capture the exec command result which can be used later in puppet
|puppet|
I encountered a similar case where the input video was pre-edited (in my case, it was slowed down and paused for the last 5 seconds), so ffmpeg could only extract the first part up until the video paused. The issue lies in the input video itself.
I need to retrieve the text of all "find occurrences" in the active editor. By "find occurrences" I mean the highlighted matches that appear when you search in the find widget. I've tried executing `await vscode.commands.executeCommand('editor.action.selectHighlights');`, but mysteriously this only seems to work whe...
VSCode Extension Help: How can I retrieve the content of all "find highlights"? editor.action.selectHighlights only seems to work when in Regex mode
|typescript|vscode-extensions|
|css|reactjs|tailwind-css|
null
I performed both a classic survival analysis with the function `survreg()` from the `survival` package, and a bayesian analysis with `rstan`. I believe that there is no significant difference between the two approaches. So, how to transform the result of `rstan` to obtain an output similar to the result of the frequent...
C expects an optional identifier (variable name). You have two options: 1. Specify an identifier: ``` struct student { int num; char name[20]; float mark; } s; ``` 2. Leave out the identifier and define the variable separately: ``` struct student { ...
I developed a code parallelized in a hybrid way based on OpenMPI + OpenMP. It works as I expect if 'enough' number of MPI processors are given. So far based on tests, I would roughly say 'enough' means more than two MPI processors. A problem I observe is that if the code is allocated only one or two MPI processors,...
I have a simple program whose task is to read the graph description from a file and return the values. file.txt: 4 5 1 2 2 3 3 4 1 4 2 4 where 4 represents the number of vertices of the graph, and 5 represents the number of edges of graph G (so I don't want to show...
I have to write a simple client for a chat server, and I want to concurrently check input from the console and from the socket connected to the server. Here is the desired behavior in C, and I want to replicate this behavior in C#: while (true) { //make set of descriptors fd_set reads; ...
Client in C# using Sockets
|c#|c|client|
{"OriginalQuestionIds":[3007312],"Voters":[{"Id":6752050,"DisplayName":"273K","BindingReason":{"GoldTagBadge":"c++"}}]}
Here's a failing test: ```java // these are pretty basic dependencies so I won't include imports or pom @Test void testIfNoHeadersAreAddedToRequestImplicitly() { Mono<Map<String, Object>> responseMono = WebClient.builder() .baseUrl("https://httpbin.org") .build() .get() .uri("/headers") ...
The problem has been solved. It was caused by the local language environment of the operating system. Set the local language environment to `en_US.UTF-8` and it will be fine. - Check locale: `echo $LANG` - Set locale: `export LANG=en_US.UTF-8`
null
They are right you're just getting an example. If you scan your actual I.D. it will bring back your personal details. An example looks like this: "@\n\x1e\rANSI 636000090002DL00410278ZV03190008DLDAQT64235789\nDCSSAMPLE\nDDEN\nDACMICHAEL\nDDFN\nDADJOHN\nDDGN\nDCUJR\nDCAD\nDCBK\nDCDPH\nDBD06062016\nDBB06061986\nDBA...
|javascript|constructor|namespaces|jsdoc|
See example. Recursive assembling expression formula from expression_tree table. ``` with -- recursive -- for PostgreSql cte as( select expression_id,oid ,concat( case when lv in('*','+','-') then concat('[',lid,']') else cast(lv as varchar) end ,ov ,case when rv in('*','+','-') ...
``` import os import glob path = '/your_path/' form = 'csv' os.chdir(path) files_list = glob.glob('*.{}'.format(form)) dic = {} prefix = files_list[0][:4] suffix = files_list[0][-4:] for i in range(0, len(files_list)): ym = files_list[i][4:12][:6] d = files_list[i][4:12][6:] ...
Your code contains some minor mistakes: - To save fields you can use the `woocommerce_admin_process_product_object` hook, opposite the outdated `woocommerce_process_product_meta` hook - `$post` is undefined when using the `woocommerce_get_price_suffix` filter hook So you get: <!-- language: lang-php --> ...
So I tried to add my own `error_code` in my application, based on Boost System. Basically, I tried first to follow the documentation: https://www.boost.org/doc/libs/1_83_0/libs/system/doc/html/system.html#usage_defining_library_specific_error_codes and did exactly as in the example. I split up the functions in a...
|wordpress|user-interface|
I'm using livewire v2. I have a problem when calling a method in livewire feels slow because another method has a large data process, for example I have 2 methods. the first method is called `methodSmallData()` and the second method is `methodLargeData()`. The code example is as below: This is controller livewi...
|html|node.js|next.js|meta-tags|
``` var1 = int(input("enter a number:")) num = str(var1)[::-1] if var1 == num: print("its a palindrome") else: print("its not a palindrome") ``` `enter a number:121` ---> expected "its a palindrome" `its not a palindrome` `enter a number:123` `its not a palindrome` Why doesn't the code w...
I have a usecase where in server requires to shutdown a channel from a particular client. Is there a way for the server to do that. When the channel reaches MAX_CONNECTION_AGE server sends GOAWAY with status code NO_ERROR and ASCII debug data "max_age" right. In a similar way, can server send a goaway to shutdown a c...
Shutting down a channel of a client from Server using grpc-java
|grpc|grpc-java|
null
Our application is a web application which is registered in Entra Id. The applications uses oidc for Authentication. We have added Databricks scope(user_impersonation) in API permissions in Entra. The Databricks scope(<databrics_app_id>/.default) is added as scope to openidconnect client. When the user logins, the acc...
System. Data.Sqlclient.SqlError:This backup set cannot be applied because it is on a recovery path that is inconsistent with the database. The recovery path is the sequence of data and log backup that have brought the database to a particular recovery point. Find compatible backup to restore,or restore the rest of the...
Restore of backup db failed.(Microsoft.SqlServer. Management.RelationalEngingeTasks)
|database-restore|
null
{"Voters":[{"Id":16217248,"DisplayName":"CPlus"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":10871073,"DisplayName":"Adrian Mole"}]}
C expects an optional identifier (variable name). You have two options: 1. Specify an identifier: ``` struct student { int num; char name[20]; float mark; } s; ``` 2. Leave out the identifier and define the variable separately: ``` struct student { ...
Incorrect classpath: Even if the dependency is included, ensure the JAR file containing ObjectMapper is on the classpath. This usually happens automatically with build tools, but double-check if you're manually managing the classpath. i was able to solve this error by changing the module-info file. What i noticed is...
I need to bind [`swag`](https://github.com/swaggo/swag) to a development environment at version 1.8.1. I have a module which I believe builds it at that version: ```nix # .deps/swag.nix { pkgs }: { swag = pkgs.buildGoModule rec { name = "go-swag-1.8.1"; version = "1.8.1"; src = pkgs.fetchFrom...
{"Voters":[{"Id":1191247,"DisplayName":"user1191247"},{"Id":5389997,"DisplayName":"Shadow"},{"Id":10138734,"DisplayName":"Akina"}],"SiteSpecificCloseReasonIds":[11]}
You need to update `cLetter` _in_ the loop, there's no magic connection to earlier code. Might as well move `cLetter`s scope to inside the loop as well. Try ```c for (iCounter = 0; iCounter < 5; iCounter++) { char cLetter = cWord[iCounter]; printf("%c == %d \n", cLetter, cLetter); } ``` Her...
|python|nlp|transform|word2vec|cosine-similarity|
My question is similar to the question found in https://stackoverflow.com/questions/75783581/define-typescript-interface-with-using-constant-names-as-keys but is a little bit different. I start off with the same type of object whose keys are constants ```js const KEYS = { KEY1: 'hello', KEY2: 'world' } as c...
hi I'm looking for the script that already exist, a theme or a guide on how to create from scratch. A concept is a language learning website that will allow a parent to pick 5 pictures at a time from the gallery, when clicking the picture, a sound 'phonics' is heard. The site should have login signup/register function ...
This is considered as an anti pattern in modern React ecosystem. According to single responsibility principle keep your business logic in a simple way with custom hooks (Use prototype inheritance in it, if required), To store API calls use Tanstack Query and to store global data use Jotai (Atoms). This libraries ar...
Boost system segmentation fault when not inlining
|c++|boost|boost-system|
You can try ``` pattern='FRN ( 3| 8|10|18)' ```
I have a page in google spreadsheet which contain list of ID's which are used in another page to be a lookup index. Initially I just used VLOOKUP and HLOOKUP functions but now I'm trying to make a Query because it offers more features to represent my data. Simpler variant of query works fine: ``` =QUERY('Page1'!A3...
How to correctly use group by in Google Query by one column when I multiselect columns?
|google-sheets|google-query-language|
null
Basically i am trying to code this project of this part of the video https://www.youtube.com/watch?v=jAMegKEetx4&t=338s , the project is a typing game, where words appear from left and move to the right and you have to type them out so they dissappear. Im trying to code the project in python using the turtle module and...
how to have a value of a class written with a associated, own turtle?