instruction stringlengths 0 30k ⌀ |
|---|
I have the following chart with 1 point:
[![enter image description here][1]][1]
Is there a way to draw a line from this point or convert the point to a line like the following screenshots?
[![enter image description here][2]][2]
or
[![enter image description here][3]][3]
[1]: https://i.stack.... |
Highchart draw line if there is one point |
|javascript|highcharts| |
In my case, I have this entry in `tsconfig.json` which only has `"./src/types/global.d.ts"`:
{
...
"files": [
"./src/types/global.d.ts"
]
...
}
**Solution # 1**
You can delete the whole `files` entry.
**Solution # 2**
Add `include` in your `tsconfig.json` whi... |
When I try to fit CatBoostClassifier on GPU with pandas dataframe with embeddings, I get this error:
CatBoostError: Attempt to call single feature writer on packed feature writer
The data type for embedding in the column is object. `Catboost version==1.2.2.`
When I remove the embedding column from the tra... |
Method to add new or update existing item in C# Dictionary |
|c#|dictionary|containskey| |
null |
After this:
create directory importDir as C:/dump
you should have also ran
grant read, write on directory importdir to import
Otherwise, `import` user won't be able to access any file in that directory. If it (`import` user) won't *write* anything there, then `read` privilege is enough.
(BTW, I w... |
I use NUCLEO-F042K6 board to generate a PWM signal. I use Timer2 for that purpose. Timer2 has 4 channels, but according to *STM32F042x4 Datasheet* CH1 cannot be redirected to physical pin.
[![Picture 1: Timer 2 schematic - Reference manual][1]][1]
[![Picture 2: Alternate functions - Datasheet[2]][2]
I still want to ... |
Configuring timer channel as output |
|stm32|cpu-registers|pwm| |
Both your implementations use a stack. The first uses the callstack, while the other uses an explicit stack. There are several differences that impact performance:
1. The call stack is managed implicitly, using compiled code (CPython), which gives an advantage over a stack that must be managed with Python code (`ext... |
If you use `persistCredentials: true` for `checkout` task, the token lifespan in whole pipeline is `1hour`.
If you `don't` want to use github token to push the code, as you mentioned you can separate out the git push into another job. Checked on my side, you cannot put the new job in same pipeline, you can publish ... |
Title could be worded better, but essentially I am trying to use open cv in Rust and I found the `opencv` crate
Per the example from the github page I tried this to display camera feed
```
use opencv::{highgui, prelude::*, videoio, Result};
fn main() -> Result<()> {
let window = "video capture";
hig... |
Rust opencv crate has very severe camera lag |
|python|opencv|rust|rust-cargo| |
I'm currently working on a project where I'm able to generate a sitemap successfully. I've created several sitemaps, and one of them is named "videos". After some research, I discovered that Google recommends using a dedicated sitemap for videos.
Here's an example of the structure recommended by Google for a video s... |
I'm a beginner in creating browser plug-ins. Could some kind soul help me with the best way to transfer data between browser tabs? I would like to transfer data from a script running on an inactive tab in real time and use it to control the operation of the page on the active tab. I will be grateful for any advice that... |
Transferring data between cards |
|web-audio-api|browser-tab|chrome-plugins| |
null |
Cut out some parts but this is how i'm trying to save it
I would really want to be able to use the same file name and resave over the map_file_path which I have defined already. It works the first time but any subsequent times when making requests, it takes me back to the original map that I created..
```
@app.r... |
Generating maps with folium/flask only works the first time, subsequent requests return the same map |
|javascript|python|folium| |
null |

In the above graph as it has mentioned to break the ties alphabetically so in depth first search it goes from p to q ,q to r ,r to w,and from w whether it goes to z or it goes to v Iam confused here ,also can any one help me what will be the answer ... |
|depth-first-search|breadth-first-search| |
You can use the sorted function along with a lambda function as the key to achieve this. Here's an example of how you can sort the dictionary by values in ascending order:
average = {'ali': 7.83, 'mahdi': 13.4, 'hadi': 16.2, 'hasan': 3.57}
sorted_average = dict(sorted(average.items(), key=lambda item:... |
"root element" is not really a thing here. The browser will see the component deeply embedded in the layout and page.
You can make your own root:
```html
<div class="root">
<div class="foo">
<div>Hello</div>
<div>World</div>
</div>
<span class="foo2">
Second root eleme... |
On Angular 16 with Material 16, if you have background/foreground setup as the following:
```sass
@use '@angular/material' as mat;
@use "sass:map";
// ...
// Background for dark theme.
$custom-dark-theme-background: (
status-bar: black,
app-bar: map.get(mat.$grey-palette, 900),
background: #2836... |
In Usual arithmetic conversions, the results of unsigned integer and signed integer operations differ on different compilers |
|c++|gcc|visual-c++|clang|mingw| |
null |
I'm trying to animate photos with the '.project-img' class under 'first dog' and 'second dog' in the same way as the first photo. However, my code, which uses forEach to assign addEventListener to these elements, doesn't seem to be working. Can someone please help me understand what might be causing the issue or provid... |
You can use formulas like these:
In `A14` :`=INDEX(T(+$A$4:$A$10),MATCH(0,INDEX(COUNTIF(A$13:A13,$A$4:$A$10),),0))`
In `B14` :`=SUMIF($A$4:$A$10,A14,$B$4:$B$10)-SUMIF($A$4:$A$10,A14,$C$4:$C$10)`
As a supplement, alternative formulas to B14 can also be given.
=SUMPRODUCT({1;-1},SUMIF($A$4:$A$10,$A14,IN... |
I believe this will work in `2010`:
B1: =IF(A1="Name","Group",IF(A2="Name","", INDEX($A$1:A1,LOOKUP(2,1/($A$1:A1="Name"),ROW($A$1:A1))-1)))
and fill down.
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/vNNmx.png |
It should be possible to handle full line reading with keys suppression by taking advantage of [ReadKey(bool intercept)][1] with some custom solution like:
public static string? ReadLine(bool intercept)
{
if (!intercept)
{
return Console.ReadLine();
}
StringBuilder sb = new();
int position = ... |
For starters the typedef name `new` is not good. It will be much better for example to use typedef name `Node`
typedef struct Node Node;
struct Node
{
Node *prev;
Node *next;
int data;
};
you should decide what to do if the specified index is greater than the current number of... |
I get `Stack Level Too Deep Error ` when i call vendor.account_owner in the `index.html.erb`
the vendor migration file looks like this
```
class CreateVendors < ActiveRecord::Migration[7.0]
def change
create_table :vendors, id: :uuid do |t|
t.string :name
t.text :description
t.string... |
Generate a video sitemap for Next.js |
|next.js|next.js13|sitemap|google-search|robots.txt| |
I'm trying to create a simple RAG using the ```infoslack/mistral-7b-arxiv-paper-chunked``` dataset on Hugging Face. As in https://stackoverflow.com/questions/77671277/valueerror-invalid-pattern-can-only-be-an-entire-path-component, I'm getting ```ValueError: Invalid pattern: '**' can only be an entire path component```... |
Another ValueError: Invalid pattern: '**' can only be an entire path component |
|python| |
WordPress question
I have a category C.
And this has subcategories A,B,X,Z
I want to display how many posts are in the subcategories of C in total.
I know that there are 204. But I only ever get 184 displayed.
Why is that? Because subcategories A and B are not counted.
Why is that? Nobody knows.
Bec... |
I have three 1D NumPy Arrays XX, YY, and ZZ. They are organized such that ZZ[i] is the height of a hill at coordinates XX[i], YY[i]. How can I plot this using Python?
Edit:
The arrays are quite large (each contain about 3e5 data points)
Thanks |
Safari on iOS has unique behavior when it comes to managing history and caching pages. The best method is to use the `pageshow` event, which is triggered when a page is navigated back to, and `persisted` event which tells if a webpage is loading from a cache or not.
```javascript
document.addEventListener("DOMConte... |
null |
I have an ASP.NET 6.0 C# application which is registered in Entra ID, let us say it is called MyApp. In the Azure portal for MyApp, under App registrations, I have used Manage - App roles to define custom roles, Editor and Viewer. Then in Manage - Users and groups I have assigned users and groups to these roles.
In ... |
How to get application roles assigned for current logged on user via C# and GraphServiceClient |
|c#|asp.net|asp.net-core|msal|entra| |
null |
I am new to html and css. I tried writing some code for a webpage and it looked good on desktop view but I noticed that in mobile view, the right half of the page is whitespace. To fix this, I have tried to make the parent elements width '100%' and the child element width to 'auto', as you can see from the code below.
... |
I have just exported a teachable machine model in the h5 file format, and i set it up locally in my development environment but i keep getting this error
```
TypeError: Error when deserializing class 'DepthwiseConv2D' using config={'name': 'expanded_conv_depthwise', 'trainable': True, 'dtype': 'float32', 'kernel_... |
Trying to export Teachable Machine Model But returning error |
|python|tensorflow| |
null |
I'm deploying a Node.js/MongoDB app to Heroku, and it crashes with the following error:
MongooseServerSelectionError: connection <monitor> to
104.155.184.217:27017 closed
**Here's the relevant part of my logs:**
2022-07-10T23:36:17.323791+00:00 heroku[web.1]: Process exited with status 1
20... |
> If a Windows username is created in a xxx@domain.com email syntax...
Allow me to correct you there: it isn't "e-mail syntax" - it's (an RFC 822-compliant) _User Principal Name_, or UPN for short. Crucially, _it is not an e-mail address_.
<sub>**Nostalgia time!**: Back in the days of Windows 2000 I remember the ... |
So I did not find any solutions to my problem that makes use of the `Illuminate\Foundation\Testing\RefreshDatabase::class` I instead opted to use a different trait which caused a slight performance issue but still works.
The trait that I used is `Illuminate\Foundation\Testing\DatabaseMigrations::class` |
Try to downgrade from 4.4.0 to `4.3.15` or `4.3.8`
`id 'com.google.gms.google-services' version '4.3.15' apply false` |
My site collects address information through our gravity form. We use the google places API to suggest the address as the user types. However, when Chrome users click the field it overlays their auto-fill options for saved addresses. Most times these addresses come in as "Street number..Street Name" as opposed to the g... |
Counting posts from a category that has sub categories |
|wordpress| |
The `-e` option to `bash`'s built-in `echo` is a non-POSIX extension that enables processing of backslashed characters according to the XSI extension to the POSIX standard.
POSIX `echo` is supposed to treat `-e` as an ordinary argument, not an option. You can see this behavior using `/bin/echo`, which is POSIX compl... |
I cannot perform actions on my markers. I would like to be able to open a popup when clicked. I cannot use version 3. I am unable to implement GestureDetector and I cannot find a compatible module with version 6. Here is my collection of markers:
```
allMarkers.add(
Marker(
point: LatLng(poi.lat, poi.longi)... |
Manage actions on a marker with flutter_map 6.1.0 |
|flutter|dart|google-maps-markers|gesturedetector|fluttermap| |
null |
I am using Flask to try to develop a website for the first time. I finished the log in system for the website and now I making an online course of sort for those who have logged in. I have set up the log in successfully and now I am trying to make a system where one can watch video lectures. while to the lectures works... |
Flask Application Not Dynamically Loading Video Content on Lecture Selection |
|flask| |
null |
I want to get the time complexity of this pseudocode:
```
count = 0;
for (i = 1; i < n; i *= 2)
for (j = 0; j < i; j++)
count++;
```
I thought it was log(n)\*log(n), but the answer is log(n). I was told that because i\*2 has nonlinear growth, I can't multiply directly.
I am confused why I ca... |
Why I can't calculate time complexity by multiplying? |
Can I disallow the ability for a user to select/see a Chrome autofill option when using google places API? It's causing incomplete address submissions |
|autofill|google-places-autocomplete| |
null |
I am able to retrieve the value of `app.config` settings in Azure Function app using the below code.
```csharp
var test = Properties.Settings.Default.Setting1;
```

***My `app.config`:***
```csharp
<?xml version="1.0" encoding="utf-8" ?>
<conf... |
null |
null |
i would not suggest to store data in json due to usage you need at compile time.
so something like this string value = businessMessagesModel.MSG_1.en - will be available at compile time.
as a different approach i would suggest:
this is example to have class as enum which you can add messages at compilation and dyn... |
How to fix Heroku "State changed from up to crashed" (Mongoose connection error) |
|javascript|node.js|mongodb|mongoose|heroku| |
I installed Visual Studio 2022 and created new ASP.NET Core web app project with .NET 8.0 framework, but after creating project, while viewing solution explorer there is no templates of ASP.NET application, I am confused
I installed .NET 8.0 and Visual Studio 2022, in Visual Studio I installed 3 workloads - ASP.NET ... |
ASP.NET Core web app not get created in Visual Studio 2022 |
In the following program:
```
#include <stdio.h>
int main() {
int c;
c = getchar();
putchar(c);
}
```
Even if If write many characters in the input and press `enter`, it only prints the first character.
However in the following program:
```
#include <stdio.h>
int main() {
int ... |
Why does getchar in C accept many characters in a loop but not outside one |
|c|stdio|getchar| |
This looks like a genuine bug. I have escalated the issue to Google.
To send a report of your own, and get notified of changes, open a spreadsheet and choose **Help > Report a Problem** or **Help > Help Sheets Improve**. If you are on a paid Google Workspace Domain, see [Contact Google Workspace support](https://sup... |
To log events on Flutter Web, you firstly need to configure your Facebook Pixel inserting the snippet above `</head>` in `web/index.html`. You can find the snippet following this [guide][1]
After that, you can send events to your pixel utilizing dart interoperability. More informations [here][2]
import 'dart:... |
I need to replace the function returns by a module.
I'm using **CommonJS** with **nodejs 18**.
**index.js**
```js
const sinon = require("sinon");
const axios = require("axios");
const fs = require("fs");
const fileConverter = require("./file-converter");
async function main() {
// Anyway, here is ... |
I'm currently working on a project where I'm able to generate a sitemap successfully. I've created several sitemaps, and one of them is named "videos". After some research, I discovered that Google recommends using a dedicated sitemap for videos.
Here's an example of the structure recommended by Google for a video s... |
Your structure when viewed as a table means for every new message, your adding a new column to the table. (and that's why you have the mess of having to re-generate the class each time).
Why not make the Message ID a column like all the other fields?
Hence this:
[
{
"ID": 0,
"en": "Something wen... |
I'm extremely new to Python (a couple of weeks into my self learning journey) and I've hit a wall.
The Goal:
To have a script that will read the files in the folder the script was run from, dynamically create buttons for any .lnk files it finds, extract the icon from the target .exe file and add it to the butto... |
I manage a longitudinal dataset of schools that is shaped wide, so there is one row per school and variables about each school that span multiple years. Stakeholders often need a table displaying a subset of schools and variables from our 1,000+ variable file. For example, our marketing team wants to be updated regul... |
In Stata17, is there a way to browse variables in a specific order rather than the dataset's variable order? |
I suspect you've tried to install the "Vibrancy" extension.
This extension changes the default CSS of Visual Studio Code and I think the latest version of Visual Studio Code is not letting us change its default CSS. I also have restarted my laptop because I am facing the same problem I think reinstalling Visual Studio... |
This is answer is more along the lines of a trick, or even a hack. As the comment above by @ThomA states, all branches of a `CASE` expression need to have the same type. You can achieve this by casting the `UserId` to text and then left padding with some number (say 10) of zeroes. This means that, when used for sort... |