instruction stringlengths 0 30k β |
|---|
How to implement gaze tracking in drowsiness detection system |
|python|opencv|tracking|dlib|imutils| |
null |
I had a similar issue. However, the error SIGSEGV used to happen only once per worker, per task. so if I had 3 tasks, and 2 workers GREEN & BLUE. Each first task run of the 2 tasks on GREEN used to fail, and also on BLUE.
I tried:
- There is NO need to create a retry handler for `WorkerLostError`
- Importing insi... |
{"Voters":[{"Id":5625547,"DisplayName":"0stone0"},{"Id":3001761,"DisplayName":"jonrsharpe"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]} |
I am using Vue 2 with Vuex. The received object is first sorted into separate sub-objects based on classCategory value.
Does it not work because the v-model value in draggable is a key from parent tag object?
```
<div class="class-draggable__group" v-for="group in groupedClasses" :key="group.categoryLocalised">
... |
How to pass dynamic filter to the vector retriever of the chain from the input (request body) in langchain? |
|langchain|opensearch| |
I am trying to run django celery and celery beat
after i start celery and celery beat
this process is running every second is this normal
```
celery-1 | [2024-03-10 16:08:11,479: INFO/MainProcess] Running job "EventPublisher.send_events (trigger: interval[0:00:01], next run at: 2024-03-10 16:08:12 IST)" (... |
Celery and Celery beat wit django after running in docker container running some job |
|django|django-celery|django-celery-beat| |
null |
|php|wordpress|woocommerce|hook-woocommerce|cart| |
null |
I would like your assistance of a dax measure where I need to condition the filtering count of status. The problem here is it only filtered the latest date and when I filter the previous month it shows (Blank). I also don't want to sum the count if all months are selected. Here's my current measure. Thank you
Measu... |
Dax Measures Filter by Month |
|powerbi|dax| |
I have researched back and forth on this issue and so far nothing has worked. I'm unable to open sublime while using git using a command such as sublime. or sub.
I have used another command on git but it shows in config --list but it is not opening. |
null |
I am trying to reuse some code within my python project, within an Azure Function, it is structured as follows:
myproject/
| - a_app/
| - b_app/
| - c_lib/
| - requirements.txt
Up until now I have been conveniently avoiding sharing code between my 2 separate modules a_app and b_app. But I now want to create s... |
```
ALTER PROCEDURE [dbo].[identify]
AS
BEGIN
SET NOCOUNT ON;
MERGE INTO [dbo].[warehouse] AS dim
USING [dbo].[staging] AS stg
ON dim.[first_name] = stg.first_name
WHEN MATCHED THEN
UPDATE SET
dim.[first_name] = stg.first_name,
dim.last_name = stg.las... |
I need a Regex to match all unicode emojis.
I need this to check if a discord message has a Unicode Emoji in it.
// Here is a example of matching one Unicode Emoji
message.content.match(//g)
// or two
message.content.match(/|/g)
// and three
message.content.match(/||/g)
// then so ... |
{"Voters":[{"Id":446594,"DisplayName":"DarkBee"},{"Id":7508700,"DisplayName":"David Buck"},{"Id":839601,"DisplayName":"gnat"}]} |
```python
import matplotlib.pyplot as plt
import numpy as np
from numpy.linalg import norm
def cosine_similarity(arr1:np.ndarray, arr2:np.ndarray)->float:
dot_product = np.dot(arr1, arr2)
magnitude = norm(arr1) * norm(arr2)
similarity = dot_product / magnitude
return similarity
def euclidea... |
Sharing package within a Python project with Azure Functions |
|python|azure-functions| |
null |
|c++|qt|xterm| |
I'm currently working on a school project where I need to apply multiple border images to an element using border-image-source. However, I'm encountering issues where only one of the border images is displayed, while the other is not being applied. It would show up as a grey border instead if both of the borders are ap... |
|php|wordpress|woocommerce|user-roles|badge| |
null |
set `db_table = 'custom_user'` and again run migration. Try this method. |
My iPad app has a View that uses a Metal shader as described [here][1].
#include <metal_stdlib>
using namespace metal;
[[ stitchable ]] half4 borderField(float2 position, half4 currentColor, float2 size, half4 newColor) {
assert(size.x >= 0 && position.x <= size.x);
assert(siz... |
similarity between two numpy arrays based on shape but not distance |
|python|similarity| |
To get ID token along with access token, you need to pass **`openid`** as the scope.
Grant **`openid`** permission to the Microsoft Entra application:

**To get ID token along with access token,** modify your code by passing scope as **`openid`**
... |
I am able to log the Information and Error messages with the same [code](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-6.0#azure-app-service) which you have shared.
- Instead of `(ex.Message,"Text")` , set the Error message as `(ex,"Text")`.
- You can remove `builder.Logging.A... |
null |
So I have a string with double letters, 'commenntt', how do I get a list of all double/single letter word combinations?
The list should look like { "commenntt","commennt","commentt","comenntt","commentt","commennt","coment", and whatever else I missed };
It may seem like a "let's assess the issue and solve it a diffe... |
Device orientation dependent SwiftUI Metal problem: RBLayer: unable to create texture: BGRA8Unorm |
|ios|swiftui|metal| |
I cannot use Dropdown/Modal from Semantic UI in Next.js. The code below can't work properly (no response when clicking the button)
```
'use client';
import Image from "next/image";
import * as React from "react";
import { Button, Header, Modal, Icon } from "semantic-ui-react";
export default function Home()... |
Cannot use Dropdown/Modal from Semantic UI in Next.js |
|next.js|dropdown|semantic-ui| |
null |
{"Voters":[{"Id":14098260,"DisplayName":"Alexander Nenashev"}],"DeleteType":1} |
|php|wordpress|woocommerce| |
null |
|javascript|vue.js|xtermjs| |
I have to use Johnson distribution to see how different means are when modifying the skewness value (.3 in the code below):
```
library(moments)
library(SuppDists)
k <- 500
parms <-JohnsonFit(c(0, 1, .3, 6))
sJohnson(parms)
poblacion <- rJohnson(1000, parms)
mu.pob <- mean(poblacion)
sd.pob <- sd(pobla... |
Mean comparison using Johnson distribution in Rstudio |
|r|rstudio|mean| |
(C#) How do I get all double letter combinations from a string? |
|c#| |
null |
{"Voters":[{"Id":14853083,"DisplayName":"Tangentially Perpendicular"},{"Id":11107541,"DisplayName":"starball"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]} |
The solution that is working for me is:
In template, include your question (HumanPrompt) as {question}
For example:
template = """ you are an information extractor. Answer the question.
Context: {context}
Question: {question}
Answer:"""
Then in the qa, put your question as value of key ... |
I am using Vue 2 with Vuex. The received object is first sorted into separate sub-objects based on classCategory value.
Does it not work because the v-model value in draggable is a key from parent tag object?
```
<div class="class-draggable__group" v-for="group in groupedClasses" :key="group.categoryLocalised">
... |
As Olakunle indicated, you must include the IAM role that the state machine is using. Some services send directly to SNS, but Step functions is not one of them (See [https://docs.aws.amazon.com/sns/latest/dg/sns-key-management.html][1])
But a few points:
- If you directly give permissions to an IAM role in the KMS... |
null |
|php|wordpress|custom-post-type| |
null |
I'm trying to setup bumblebee (bumblebee-hotword-node) within a server that will listen to a discord server for the 'bumblebee' hotword derived from https://github.com/SteTR/Emost-Bot/tree/master
So far I have got the tool integrated and emitting 'data', but it never fires the 'hotspot' callback when i say "bumblebe... |
{"Voters":[{"Id":446594,"DisplayName":"DarkBee"},{"Id":5349916,"DisplayName":"MisterMiyagi"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]} |
How do I get all double letter combinations from a string? |
The accepted answer is good. But...
I didn't see cancel() method implementation
So my implementation with possibility to cancel the running task (simulating cancellation) is below.
Cancel is needed to not run postExecute() method in case of task interruption.
public abstract class AsyncTaskExecutor<Params> ... |
So I have a string with double letters, `commenntt`, how do I get a list of all double/single letter word combinations?
The list should look like
```
{ "commenntt","commennt","commentt","comenntt","commentt","commennt","coment", and whatever else I missed };
```
It may seem like a "let's assess the issue and so... |
From the publication:
"*Since the solar activity cycle is 27 days, this paper uses 27 days as the sliding window
to detect the ionospheric TEC perturbation condition before the volcanic eruption. The
upper bound of TEC anomaly is represented as
UB =Q2+
1.5
IQR
and the lower bound
as LB =Q2β1.5IQR*"
Impleme... |
|php|wordpress|woocommerce|user-roles| |
null |
I tried sending email works perfectly fine, but the link that i've received is local server link and not my domain link.
I'm using gmail for sending emails, do i have create /verify file for html ??
```
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
... |
**Code**
maybe there are 4 groups
dfs = [d for _, d in df.groupby(df['a'].diff().lt(0).cumsum())]
dfs
[ a
0 10
1 14
2 20,
a
3 10
4 12,
a
5 5,
a
6 3] |
We are trying to use Apache spark in our existing application. Spark is using `Antlr4` version `4.9`.
While Hibernate is using `Antlr4` version `4.10`.
Antlr has made changes between 4.9 version and 4.10 version which is causing below issue.
Caused by: java.lang.UnsupportedOperationException: java.io.Invalid... |
Incompatibility between Hibernate 6 and Apache Spark latest version |
|spring-boot|hibernate|apache-spark|hibernate-6.x| |
I'm porting a Windows C code written for MSVC to be compatible with gcc and clang. I have this snippet of code to declare a variable in a shared segment:
> #pragma comment(linker, "/SECTION:.shr,RWS")
> #pragma data_seg(".shr")
> volatile int g_global = 0;
> #pragma data_seg()
>
I know that the gcc equivalent ... |
Windows shared segment in clang |
|c|windows|clang| |
null |
{"Voters":[{"Id":3001761,"DisplayName":"jonrsharpe"},{"Id":9568358,"DisplayName":"Wimanicesir"},{"Id":839601,"DisplayName":"gnat"}]} |
{"Voters":[{"Id":2055998,"DisplayName":"PM 77-1"},{"Id":4850040,"DisplayName":"Toby Speight"},{"Id":839601,"DisplayName":"gnat"}]} |
It seems you haven't installed [coastStat library](https://github.com/kvos/CoastSat).
Using above link you should download the repository.
On your Anaconda environment cd into the folder where You have downloaded coastStat library.
Run below code:
```bash
conda create -n coastsat
conda activate coastsat
... |
Nodemailer email verification errror |
|node.js|mongodb|nodemailer| |
null |
|gdb|mpi|xterm| |
My POST request isn't working and it's not updating? the error is: TypeError: Cannot read properties of undefined (reading 'username')
app.post('/create-user', function(req, resp) { const client = new MongoClient(uri);
const dbo = client.db("eggyDB"); // Get the database object
const coll... |
Why won't my POST request work? i'm using handlebars, express, and mongodb. i'm new to this |
|javascript|html|express|handlebars.js| |
null |
|php|laravel| |
null |
|audio|discord|discord.js|audio-streaming|voice-recognition| |
You have intercepted a poorly evolved terrorist cell that uses Caesar's method as a cipher. Messages are always in English. What they do is replace each letter with another letter by moving the alphabet K positions. So, for example, if we move the alphabet two positions forward, we would get the following correspondenc... |
Cryptography in C |
|c| |
null |
I am trying to convert my discord image into Base 64 from a link so it can be used in Googles [Gemini Pro Vision Model](https://ai.google.dev/tutorials/node_quickstart#generate-text-from-text-and-image-input). However I am encountering an error every time. I believe it occurs when the axios function is run, but I am no... |
The UTF-8 string in example seems to be coded with **too many bytes**!
---
The input string: "TESTTEST"
- ββ (U+1F449): A hand pointing right
- βTβ, βEβ, βSβ, βTβ: Basic Latin letters
- ββ (U+1F4CD): A round pushpin
- βTβ, βEβ, βSβ, βTβ: Basic Latin letters
This string is stored in a UTF-8 encoded fi... |
UTF-8 string has too many bytes using SBCL and babel on Windows 64 bits |