instruction
stringlengths
0
30k
I am trying to make a API call and get all data related to orders and show that in a list. I have tested the following which are working as expected. 1 - Adding static data to the view. 2 - The api call is returning the data and is being parsed properly. The only thing which is not happening is when i am updati...
Duplicate and Incorrec Legends shown in the plot
|dataframe|matplotlib|
If you look at the page, the borders overlap and thicken due to the detail section. Why doesn't the following work? I tried removing all the borders of the details class with CSS, but it didn't work. The bottom border is always there and overlaps. [enter image description here][1] `td colspan="100%" class="deta...
I’m trying to create an HTMl table from data from several tables with values and the length of values in different arrays are the same. I will simplify the example here by limiting it to two tables. I would like to get something like this: [enter image description here](https://i.stack.imgur.com/BfRaN.png) Bu...
I'm learning navigation in React Native, and can't figure out way how to conditionally use one Back Button. Wanted behaviour would be like this - if user navigate between screens, he can press Go Back button, but if one of the screens contains WebView and he already visited few pages there, user would go back through ...
I faced this issue after reinstalling IntelliJ IDEA. Despite having correctly set the JAVA_HOME variable and ensuring a clean Java installation, the problem persisted. Upon closer inspection, I discovered that I was attempting to launch IntelliJ using an outdated Windows shortcut that pointed to a previously uninstalle...
How about update table_a a set a.status = (select b.status from table_b b where b.state = a.state and b.name = a.name ); or merge into table_a a using table_b b on a.state = b.state and a.name...
I has some python scripts that use argparse for input and is working fine. I want to use pytest to test these scripts. I cannot figure out how to tell pytest to ignore input arguments intended for my test. Also how to tell my test to ignore input arguments intended for pytest. For example, I want to use pytest -s...
Data not updating in recycler view after api call using retrofit
|android|kotlin|retrofit|
Here is some test code to help me understand multibyte character management. #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { char * line = malloc(1024); size_t n; getline(&line, &n, stdin); while (*line) { ...
|c|multibyte-functions|
I'm trying to subset this issue using R base. I have a list of names that I want to subset by severam nested lists of indices. The list of names comes in as very compact and straightforward, the list of indices is nested an the indices may have leaps, ie, some numbers can be non-consecutive; each sublist starts the co...
I'm pip installing the ibm_watson_machine_learning module on a new virtual environment running python 3.12.1. I get an error saying 'could not build wheels for pandas, which is required to install pyproject.toml-based projects'. I tried to install pandas using pip and update pip to pip 24.0, to no avail.
pip installing ibm_watson_machine_learning module fails
|python|pip|ibm-watson|
null
Aspose.Words for Python supports conversion from PDF to DOCX. The code is pretty simple: ```py import aspose.words as aw doc = aw.Document("C:\\Temp\\in.pdf") doc .save("C:\\Temp\\out.docx") ``` [Aspose.Words support a lot of document formats][1], but at first it has been designed to work with MS Word documen...
I want to read a file (object) from S3 bucket in Mule 4. I have access to read/write file only to this bucket. Hence when I enter access key & secret in global config of AWS S3 connector and do 'Test connection', I am getting Access Denied error. The way we can access in WinSCP is using using remote directory opti...
<!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> client.on('messageCreate', (message) => { if (message.channelId === mhc_minor && !message.author.bot) { const ignorePrefixes = ["[+1 Soul Point]", "[!]", "[Info]", "[Event]", "[Be sure", "[Sale]"];...
It depends on the device you're using. Try adding `touchstart` event listener for mobile In your case: <div ontouchstart="toggleForm()" id="toggleButton"> <h3>TITLE</h3> </div> *The most efficient way is to have an if statement in your script and add `touchstart` or `click` event listener based...
For the first question: You can simply modify the content of the kv file as follows: ``` <testApp>: Screen: Image: source: "pic.png" size_hint: 1, 1 allow_stretch: True keep_ratio: False ``` This will make it resize to fit the entire window and posit...
I have the following Terragrunt unit that I'd like to prefix a given environment too. ``` envs: - dev - stg tables: dynamo-db-table: hash_key: "key" attributes: - name: "key" type: "S" ``` working with the following module ``` module "dynamodb_table" { source = "terraf...
Create list of map keys to iterate over in Terraform
|terraform|terragrunt|
When I run `./waf configure -v` locally, I get ``` Checking for 'gcc' (C compiler) : 13:52:02 runner ['/usr/bin/gcc', '-dM', '-E', '-'] /usr/bin/gcc Checking for 'gcc' (C compiler) : 13:52:02 runner ['clang', '-dM', '-E', '-'] not found Checking for 'clang' (C compiler) : 13:52:02 runne...
httpd root domain to serve content of subdomain
|php|wordpress|apache|apache2|httpd.conf|
Facing issue with my telegram bot using aiogram 3.4.x. Works fine on android devices, but can't find solution for iOS(tested on different iphone devices) After history cleanup on android devices "START" button available after 5 seconds delay. On iOS devices history remaining empty and button not appear. Tested u...
|python|ios|bots|telegram|aiogram|
The problem with taking a screenshot is that the canvas is divided into several sections: ![enter image description here](https://i.stack.imgur.com/p7xKE.png) I am using Angular and I don't see a way to capture it, I have tried to create a single canvas combining the existing ones but the styles are not maintaine...
Maybe try `import_owl()` from Bioconductor package **simona**.
{"OriginalQuestionIds":[66447374],"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney","BindingReason":{"GoldTagBadge":"seaborn"}}]}
|laravel|database|join|connection|
I'm very new to the ROS/Slam? can somebody point to any documents/article on the topic of analysing the slam method of running it on several datasets? i already managed to run the algorithm on the rgb-d and stereo cameras but i dint know how to run it on a dataset
How do i stream the data from TUM RGB-D to ORB-SLAM3 ard analyse/record data from that
|ros|slam|
null
The confluent avro library (io.confluent:kafka-avro-serializer) does **not** provide an option for JSON encoding of Avro data. This was confusing to me as well, since Conluent's docs [mention][1] the option for JSON encoding. However their library explicitly makes use of binary Avro encoding with no option to configure...
I have Azure Notifications Hubs set up on iOS device and it is receiving messages from the Test Send page in Azure Notification Hubs, but I cannot seem to get an Azure Function Timer to send notifications using the backend adapted code examples for [specific devices][1] and [specific users][2]. I keep getting this e...
I am implementing maven release process on my gitlab ci cd pipeline. After the release is completed it should push the docker image with the name of the tag release process created. It should then be deployed to internal cloud and to artifactory. I have the following problem. When there is an error during maven rele...
I am creating an MLM (multi-level marketing) system in PHP and MYSQL database. I want to fetch the child user ID based on the parent ID. I have found a solution https://stackoverflow.com/questions/45444391/how-to-count-members-in-15-level-deep-for-each-level-in-php but getting errors- I have created a class -...
System and OS : Apple Silicon Mac M3, Sonoma OS Trying to install neo4j with docker and getting below errors: ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2b037cfc' was successfully initialized, but failed to start. Please see the attached caus...
Unable to install Neo4J on Mac M3
|docker|macos|neo4j|
null
I want to get local/remote `SockAddr` pair of a successful reqwest http connection. I used to write the following code. #[tokio::main] async fn main() -> Result<(), anyhow::Error> { let response = reqwest::Client::new() .get("https://example.com/") .send() ...
I am trying to split the data and rearrange the data in a CSV file. My data looks something like this 1:100011159-T-G,CDD3-597,GG 1:10002775-GA,CDD3-597,GG 1:100122796-C-T,CDD3-597,TT 1:100152282-CAAA-T,CDD3-597,CC 1:100011159-T-G,CDD3-598,GG 1:100152282-CAAA-T,CDD3-598,CC and I want a table that looks like t...
Data Restructuring using python in unix
|python|unix|
|ruby-on-rails|ruby-on-rails-5|
It works as designed, see CSS Specificity: https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity I would assign the p tag a dedicated class (e.g. `modern-white`). That overrules the global rule.
{"OriginalQuestionIds":[77015145,74750819],"Voters":[{"Id":20287183,"DisplayName":"HangarRash"},{"Id":1974224,"DisplayName":"Cristik","BindingReason":{"GoldTagBadge":"swift"}}]}
Pytest - RuntimeError: Working outside of application context
How do I combine back buttons for Screens and WebView into one in React Native using React Navigation package?
|react-native|react-navigation|back-button|
null
For Example, I am using this JavaScript code to invoke a button click. ``` $(document).ready(function() { document.getElementById('buttonId').click(); }) ``` It works independently. But If I want to use this inside document.arrive(), something like this below, it doesn't work. ``` document.arrive("som...
Javascript issue - Unable to invoke the button click event when I am using document.arrive()
|javascript|jquery|
null
With the name of the table in A1, you can get the sheet name with this formula (directly in Excel, no VBA needed): =MID(CELL("filename",INDIRECT(A1&"[#All]")),FIND("]",CELL("filename",INDIRECT(A1&"[#All]")))+1,999) * `INDIRECT(A1&"[#All]")` returns the table itself. * `CELL("filename",INDIRECT(...))` retu...
|python|math|contour|
I tried this first after adding few break points: Debug: toggle auto attach I choose [smart][1] attach. I ran from the integrated terminal `node run web` (the script I want to debug), it said debugger attached, but didn't stop at the break point. Then I tried: debug: javascript debug terminal and...
This is my code. It uses logic in the sense that it checks if the current number can be divisible by any number that came before it, excluding any even numbers. I hope it helps. <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> sub is_prime { my ($num)...
I would like to force a user password reset in Flutter on the first time login only. I have a field called "ChangePassword" in my firestore document field. When I query this field I want to show a popup message that the user cannot use the app until the password is changed. How do I do that in Flutter? Here...
I'm trying to implement basic auth functionality for testing purposes. Testing via postman, so before logging in, I call a GET request to /sanctum/csrf-cookie. After that I hit '/login' and able to receive data(if this part $request->session()->regenerate(); is commented out) , but if I try to enter protected route I w...
Session store not set on request Laravel 11
|laravel-sanctum|laravel-11|
As soon as changes are detected, you could disable scrolling and use a `DragGesture` to detect a swipe. Then you can prompt for confirmation. Something like this: ```swift struct ContentView: View { struct FormValues: Equatable { var aFlag = false var text = "" } @State priva...
I have created a button to insert a row. Each row I add says "Insert expense here. The problem is that when I click the button and insert the row, the row new row only populates where it says B7. If I were to delete "test" in B7 leave it blank, and then click the button it would get generated under B5 where it says...
I am using **LinkedInShare** library for authentication and I'm getting all information of user's profile. I am passing following permissions at the time of authentication r_fullprofile, r_network, r_emailaddress, w_share, w_messages I'm Program Partner of LinkedIn and I have access to all this to all this...
|ios|objective-c|oauth|linkedin-api|
I have created a button to insert a row. Each row I add says "Insert expense here. The problem is that when I click the button and insert the row, the row new row only populates where it says B7. If I were to delete "test" in B7 leave it blank, and then click the button it would get generated under B5 where it says...
{"Voters":[{"Id":23869325,"DisplayName":"alon"}],"DeleteType":1}
I'm using jupyter hub inside kubernetes, my hub nd workspace are separate docker images. Currently when I launch the workspace from the hub page, it receives the ping activity from the workspace pod, but it never finds the pod. This is the only thing I can find in the logs: timestamp="2024-03-28T16:00:50,184-0700...
I am not experienced in this. I need to do load balancing between three sites located on different containers in the Portainer. So far, the problem is the following. I have two containers. There is a website on one of them index.html based on NGINX, the second one hosts NGINX as a proxy server. I want my site to be dis...
Load balancing using NGINX between sites that are in different docker-containers in the Portainer environment
|nginx|load-balancing|nginx-reverse-proxy|docker-container|portainer|
null
The [System.IO.Abstractions.TestingHelpers][1] package provides a `MockUnixSupport` class for this purpose. Here's the [recommended usage][2] (from `TestableIO.System.IO.Abstractions.TestingHelpers` own tests): ```csharp using XFS = System.IO.Abstractions.TestingHelpers.MockUnixSupport; var path = XFS.Path(@"...
In a Logic App, use the `HTTP` action to send a [`GET`][1] request to https://management.azure.com/subscriptions/{your_subscription_Id}/providers/Microsoft.Resources/tags/default?api-version=2021-04-01: [![enter image description here][2]][2] Result: [![enter image description here][3]][3] [1]: https://...
# Set logo file path logo_file_path = b"Media/GUI.png" # Convert string to bytes # Set the logo file path using libvlc_video_set_logo_string vlc.libvlc_video_set_logo_string(pi, vlc.VideoLogoOption.logo_file, logo_file_path) Make sure you convert the logo file path to bytes using b"..." notation be...
I am struggling to prevent a relative positioned div text content from overflowing outside of the bounds. Markup: <div class="parent"> <div class="details"> <div class="detail1"> lotsoftext lotsoftext lotsoftext lotsoftext lotsoftext lotsoftext lotsoftext lotsoftext lotso...
css relative positioned div text content expanding and overlapping
|html|css|
Hi all i have a condition to test international phone number patterns that is(###) ###-####,Currently i have written code for this patter,which is working fine,But i want to allow a pattern also (###)###-#### and it should not accept letters but currently it is accepting,Can somebody please helpme how to achieve this ...
Multiple regex expressions to check mobile number in javascript
Please see this post for an example on how to create a single page application or how to dynamically load controls/views: [C# WPF Navigation Between Pages (Views)](https://stackoverflow.com/a/61323201/3141792). The following example assumes that you follow the pattern of the provided link. The following example wil...
I have created an fresh angular 17 (Node v18.14.1) project. and tried to run `npm run test` It fails with the following error. Error: src/app/app.component.ts:13:9 - error TS2503: Cannot find namespace 'NodeJS'. ```` import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'...
You are trying to get the copyright div to the normal position right? The problem is, when you are declaring the rotate rule in the :hover, you basically overwrite the rotate rule declared in the non-hover selector instead of adding it up. So your code should look like this: .parent:hover .copyright{ ...
# As of 2024, macOS 14.2, VSCode 1.85: - `cmd-shift-p` > `Open Logs Folder` - inside that folder, go to `window<XXX>/exthost/vscode.typescript-language-features/tsserver-log-<id>/tsserver.log` [![tsserver logs macos 14.2][1]][1] To copy the full file path: select the interesting `tsserver.log` file -> right c...
I want to create an alert that will active whenever the close price cross or hit the trendline. This is the trendline code: ``` //Declaration of trendline function a_f_trendline(a__input_function, a__delay, a__only_up, a__extend) => //Calculate line coordinates (Ax,Ay) - (Bx,By) var int a_Ax = 1 var int a_Bx ...
**SOLVED**: In _start the stack is _already_ aligned so by popping 8 bytes off in my startup code I was actually _misaligning_ it before the call to main(). The SysV x86-64 ABI requires the stack be aligned prior to any calls so it is perfectly reasonable for Clang to assume that the stack is aligned a certain way upo...
Using jitsi_meet_wrapper in flutter and it's working fine but when I'm creating a meet I'm being put into lobby where it says you'll join when owner gives you access. I saw a solution where I was suggested to change server url from default to one of the community instances from this link - jitsi.github.io/handbook/docs...
Jitsi Meet server
|flutter|jitsi|jitsi-meet|
null
> What happens to a Thread when it throws an exception when executed by a thread pool? The answer to this depends on whether or not the code is using `threadPool.execute(...)` or `threadPool.submit(...)`. If you are using `execute(...)` and the task throws an uncaught exception then the thread terminates and pool f...