instruction stringlengths 0 30k ⌀ |
|---|
|python|variables|math|scipy|numerical-integration| |
I prepare my own legend with checkboxes for echarts. When a checkbox is clicked, it invokes a special function to remove data from the chart. I remove or add this data from series and reload chart.
However eCharts has own legend with events like legendToggleSelect and select etc. Maybe can I use some functions or m... |
Calling `await` blocks until the promise is resolved or rejected, so that means that calling `controller.abort()` rigth after the loop has started won't be effective until the promise has resolved and the loop starts over.
Adding an event listener (if you're working with nodejs you can use event emitters) to your canc... |
I was solving this problem on Leetcode but I am unable to understand why my solution is wrong I am using the hash map approach to solve this, the time complexity is O(n) but the error is not something related to time exceeding
**Question:**
You are given two strings `s` and `t`.
String `t` is generated by r... |
I have made an android app (using MIT app inventor) that runs a service in the background using the Itoo extension. This means that I have no access to the android code behind it. The service is supposed to run even if the app is closed which it does in mobile phones like the Xiaomi Redmi and Samsung Galaxy but in **Re... |
Problem with Android App background service stoping |
|android|service|background| |
null |
{"Voters":[{"Id":3776927,"DisplayName":"derpirscher"},{"Id":476,"DisplayName":"deceze"}],"SiteSpecificCloseReasonIds":[13]} |
Jetpack compose - how I can hookup LiveData property from ViewModel with TextField in activity? |
|android|kotlin|mvvm|android-jetpack-compose| |
I have imported the .less file to the vue component, but it still gives me an error.
I define the variables in `base.less` under `assets/less`.
[enter image description here](https://i.stack.imgur.com/rMSZP.jpg)
And import it to `App.vue`.
[enter image description here](https://i.stack.imgur.com/2eaJ3.jpg)
... |
We can solve this by enabling **notifications** of app on the **emulator's settings**.
- In your Emulator go to:
> Settings -> Notifications -> App Notifications
- Toggle the switch on. ( if you cannot find your app select "All Apps" on the drop downs).
- Go to Notification History in your Emulators Noti... |
null |
I am using the `pins` R package and the `board_gdrive()` function to create a hosted board on my Google Drive. My goal is to have a hosted shiny app that pulls pin data from the Google Drive board. However, it appears that Google Drive requires authentication verification each time. Is there a way to not require, or ha... |
Write R pin to Google Drive without authentication |
null |
null |
{"Voters":[{"Id":18519921,"DisplayName":"wohlstad"},{"Id":7733418,"DisplayName":"Yunnosch"},{"Id":3966456,"DisplayName":"Weijun Zhou"}]} |
|nginx|keycloak| |
I'm getting this error when trying to read an Env Variable from the .env file.
Things to know: my .env is in the root directory, the variable is prefixed by **VITE_**, and I'm trying to import it doing
```const apiKey = import.meta.env.VITE_YOUTUBE_API_KEY;```
I've scoured the web, but most of the answers were e... |
After going through the replies and reading the official documentation extensively, I found that the @annotation value requires the custom annotation's object rather than class.
Ref - https://docs.spring.io/spring-framework/docs/2.5.x/reference/aop.html#aop-ataspectj-around-advice (Heading 6.2.4)
so my Aspect cl... |
I am trying to use a code for a dji tello drone for face tracking, which I got from https://github.com/Shreyas-dotcom/DJITello_FaceTracking/blob/main/Code%3A%20V2. I had modified it for my needs and the drone flies, streams and everything expect it does not follow mw as I need it to do. Can anyone see why the code is n... |
{"OriginalQuestionIds":[3029321],"Voters":[{"Id":5389997,"DisplayName":"Shadow","BindingReason":{"GoldTagBadge":"mysql"}}]} |
{"Voters":[{"Id":213269,"DisplayName":"Jonas"},{"Id":10008173,"DisplayName":"David Maze"},{"Id":1030169,"DisplayName":"jmoerdyk"}],"SiteSpecificCloseReasonIds":[18]} |
|sql|node.js|typeorm|planetscale| |
I have a Windows server running a MySQL server. There are two databases for different applications on the MySQL server.
In total, around 25 users access the database server every day.
The database server is not in the user's local network (sometimes not even in the same country).
Unfortunately, we often have p... |
I created my token on BSC and I am currently trying to verify the code on BSCScan:
> SPDX-License-Identifier: MIT
> pragma solidity ^0.8.20;
>
> import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
>
> contract Token is ERC20 {
> constructor(uint256 initi... |
How Do I Solve This BSCScan Verification Error? |
|token|bscscan| |
null |
I am currently learning Laravel by watching [this course](https://www.youtube.com/watch?v=Wn3IPX_ax-0&list=WL&index=8&t=11429s&ab_channel=freeCodeCamp.org). I attempted to install Laravel 10 using the following command:
```
curl -s "https://laravel.build/example-app" | bash
```
However, this command installs La... |
Docker Laravel 11 issue: How to switch Laravel versions |
I thank anyone who can give me a hand!
Basically, I have a WordPress site created with AWS Lightsail. So, I have an Apache server that exposes the WordPress site on my public address.
On a specific path, I would like to expose an application, for example, on the path TEST PUBLIC_ADDRESS/TEST, I would like to access t... |
Need Help: Integrating React App with AWS Lightsail WordPress Site |
|reactjs|next.js|amazon-lightsail| |
null |
In order for **Merge** to work you need to set a range of cells that you need merged.
In the code below, I've added a new **OLEVariant** variable named **MegredRange**. I'm using it to get the needed range of the start and end cells and then I merge them together.
```
var
ExcelObj, StartCell, EndCell, MergedR... |
I arrived here from a VERY different reason, but hope can help others (so don't downvote)
As per march 2024:
1) suppose You need to use an SPM for VisionPro, too
2) reading docs not support, but seems useful use:
.visionOS(.v10),
but You get:
Reference to member 'v10' cannot be resolved withou... |
**Requirement**: Based on the code provided below, implement the merge sort algorithm to rearrange an array with N elements. While running the algorithm, print array A after each merge of two subarrays.
Input
- The first line is a positive integer N (0 \< N \< 20)
- The next line contains N integers Who are the ... |
As a normal user, how would I know how many arguments and what arguments I need to pass in a command line arguments program? |
|python|arguments|command|line| |
null |
From [\[bit.cast\]/2](https://timsong-cpp.github.io/cppwp/n4950/bit.cast#2):
> [...] A bit in the value representation of the result is indeterminate if it does not correspond to a bit in the value representation of _from_ [...].
For each bit in the value representation of the result that is indeterminate, the smal... |
You should include this file into assets to make it being copied to __/dist__ folder at the build time. Look into __angular.json__ at the root of your project, by the path:
projects -> <app_name> -> architect -> build -> options -> assets |
SCons does support generating the PDB files, however you must enable it by setting env['PDB']
`env['PDB'] = "${TARGET.base}.pdb"`
Should likely do the job (I've not tried this)
From the SCons manpage:
> The Microsoft Visual C++ PDB file that will store debugging
> information for object files, shared libra... |
I make a site using reactjs, I want it to be more Google search friendly. So I optimize the download speed, lcp.....
But I'm having a problem with Total Blocking Time & Largest Contentful Paint. Anyone with experience, please guide me on how to optimize LCP when downloading data from the api.
This is my site: [ht... |
I'm making an Aqua button (from Mac OS X) and one of the many things I must fix is the button pulse, which seems to be very hard to find one to implement that actually (kinda) works
However, I found a (quarter-working) fix that "technically" pulses, but that doesn't fix the new problem of making the entire backgroun... |
I don't think JavaScript works like that. A JavaScript script doesn't work when you place it in some kind of object (div in this case). Instead it is always supposed to be put at the end of the HTML page (before the body ending tag usually) and it works accordingly what you have written inside it.
Here you are cons... |
I am running into an issue where I have tested my Apple Watch app on many simulators in Xcode and on my personal devices, but When I submitted to apple for review they are telling me that it will not run and to check my plist folder. I cannot find my Plist folder as I accidentally removed it, which led me to the settin... |
Issue with Xcode Target and settings for Apple Watch App |
|ios|swift|xcode|settings|apple-watch| |
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... |
{"OriginalQuestionIds":[218384],"Voters":[{"Id":522444,"DisplayName":"Hovercraft Full Of Eels","BindingReason":{"GoldTagBadge":"java"}}]} |
> How am I supposed to do this?
To some extent, the answer is: hope the user does not uninstall and reinstall the app. If you are anticipating that this will happen a lot, that seems like a problem to try to solve.
The `Uri` values are useless except for this app installation. Once the app is uninstalled, any per... |
Not having `ninja.build` present is a symptom of ninja not being built, which could be caused by several things. For me this happened after I ran the commands:
```
git clone https://github.com/microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg install openblas:x64-windows
```
```
Computing installation... |
{"Voters":[{"Id":354577,"DisplayName":"Chris"},{"Id":10867454,"DisplayName":"A Haworth"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]} |
I'm currently working on an app(basically a todo list), it has to push a notification at a specific time of how many tasks are remaining. But its not pushing any notification. I'm new to android.
here is the MainActivity
```
package dev.amanraj.ListUp;
import androidx.appcompat.app.AppCompatActivity;
import ... |
I'm working on an app, the app has to push a notification at a specific time but its not working |
|java|android| |
null |
I had the same problem developing a new extension for manifest v3.
Like has been said, a cors error can be linked to a missing `host_permissions` entry.
But it can also been related to the global site setting of your extension.
If the extension is not configured to work on all sites, you have to add the url of the... |
This seems to work on jQXWidgets v19.
The values of `const ex`, `const ex1` are different.
This is probably a bug in the jqxWidgets library (v12) that I was using.
I think the bug is related to:-
https://www.jqwidgets.com/community/topic/filtering-issues-when-mixing-addfilter-and-filter-row/
|
How can I insert a regularization parameter in `tidymodels` for `boost_tree()`? In the normal `lightgbm` package there is the tuning parameter `lambda_l1`. I would like to use this in `tidymodels` as well.
I tried to code it like this, but I am unsure if I am doing right:
```
lgbm_model <-
boost_tree... |
Why are landscape pages causing issues with page numbers/section headers/footers in officeverse? |
I would like to be able to debug an application through VSCode via SSH. So far I have create the debug configuration in VSCode and I have created a SSH tunnel on the correct port.
So far, this works fine. I can connect to the remote application using `node inspect <host>:<port>` and I can attach via VSCode. I have v... |
Remote debugging via SSH Tunnel |
|visual-studio-code|ssh| |
I am a beginner in testing. I have some problems. I develop the APIs according on three layer:
this is repo [enter image description here](https://i.stack.imgur.com/PwvA2.png) [enter image description here](https://i.stack.imgur.com/9Vk8U.png) this is a function in a service : [enter image description here](https://... |
The problem related to unit test CSharp , Moq |
Optimize LCP ReactJs |
|reactjs|optimization| |
null |
How to dismiss the first scene in UIKit Application? |
|ios|swift|uikit| |
null |
I am developing an iOS application with Swift in Xcode (14.5) environment.
There are two different scenes named ViewController.swift and XYZViewController.swift in the Main (Base) storyboard.
First of all, the ViewController.swift file runs on the screen. Because a SpeechScreen screen appears here. Then, redirect... |
the whole observation capability around spring boot 3 is a bit of confusing.
We have pure spring framework capabilities, micrometer ones and spring boot 3 on top to auto-configure stuff for us.
Considering a standard @RestController application with prometheus dependency added for example, by doing absolutely nothing... |
Adding `ASSET_URL` (with https) fixed the issue. It wasn't set at all in `.env` and Vite decided to pull through `http://`.
|
I have CSV files for 167 patients, they have the same number and type of columns but the number of rows in each CSV file varies. I want to train a CNN or LSTM but without combining all the CSVs. I want to train the model using each file separately because it's important for me to distinguish between each patient, so I ... |
Check your htaccess files in moodle data folder. It might overwritten by a malware program. Further, some external scripts might insert into all index.php filesin each folder in lms folder in your server. |
I'm currently working on an app(basically a todo list), it has to push a notification at a specific time of how many tasks are remaining. But its not pushing any notification. I'm new to android.
here is the MainActivity
```
package dev.amanraj.ListUp;
import androidx.appcompat.app.AppCompatActivity;
import ... |
I am quite new to stripe integration, and due to the country I am from, I cannot access the checkout session page due to account activation requirements.
So, I am not able to see what all details are visible in the checkout page, and cannot debug it. (I am in test mode)
I am quite confused about how I can sent the ... |
How to send Stripe session checkout parameters in subscription mode |
Vite TypeError: Cannot read properties of undefined (reading 'VITE_YOUTUBE_API_KEY') |
|javascript|reactjs|environment-variables|backend|vite| |
[![Graph of smoothed and unsmoothed data example][1]][1]```
def smooth_data_mp(data_frame, n): # dataframe is the data and n is number of data points to look at
num_processes = os.cpu_count() + 2
chunk_size = len(data_frame.index) // num_processes
print(chunk_size)
end_chunk = len(data_frame) // c... |
I am trying to learn how to use Room in an Android application to store local data. I have tried to follow the instructions from: https://developer.android.com/training/data-storage/room
I managed to get a simple application working, where the database was defined as:
```
@Database(entities = [Location::class], ... |
null |
Here is a possible version of the correct code:
import random
print('Welcome to the Higher or Lower game!')
while True:
lowr = int(input('\nWhat would you like for your lower bound to be?: '))
upr = int(input('And your highest?: '))
x = (random.randint(lowr, upr))
if... |
I am learning Spark, so as a task we had to create a wheel locally and later install it in Databricks (I am using Azure Databricks), and test it by running it from a Databrick Notebook. This program involves reading a CSV file (timezones.csv) included inside the wheel file. The file *is* inside the wheel (I checked it)... |
How about trying this one?
```xml
<p class="post-date">
<time datetime="2023-01-01" th:text="${#dates.format(item.getCreatedDate(), 'dd-MM-yyyy HH:mm')}">Oct 5, 2023</time>
</p>
``` |
I am using react-bootstrap and have a `<Carousel>` that I am using to display images. I'd like for them to be contained within the container, such that the entire image is visible, except for in the case that the aspect ratio is greater than 2:1 (ie really tall images), in which case you can scroll to see the rest of t... |
|django|django-rest-framework|stripe-payments|payment-gateway| |
null |
How to auto login to microsoft store? |
|c#|store|autologin| |
Under Linux and other Unix-related systems, there were traditionally only two characters that could not appear in the name of a file or directory, and those are NUL `'\0'` and slash `'/'`. The slash, of course, can appear in a pathname, separating directory components.
Rumour<sup>1</sup> has it that Steven Bourne (... |
|c#|.net|unit-testing|nunit| |