Latest Questions

There is no like "toOthers()" method in @broadcast of lighthouse?

framework versions laravel 6.20 lighthouse 5.3 Problem I'd like to use toOthers() method like this (laravel doc) in lighthouse but it seems @broadcast doesn't h

Graalvm not found within Java application

I have an Apache Tomcat servlet in which I would like to run some other language - for this purpose, I would like to try to get Graalvm functionality working wi

MariaDB CTE syntax for parameter list

I'm trying to replace an expensive where in ... query with a CTE. I've done this previously in other sql dialects, but can't get the syntax right for MariaDB/My

nginx redirecting all subdomains (when it shouldn't)

I have an nginx server running. I want it to redirect http://www.example.com to https://www.example.com, but not touch any other subdomains like http://foo.exam

cdi bean lack of value when accessed through public field

I have a configuration class, which I inject into another class. Configuration class looks as follows: @RequestScoped public class Configuration { @ConfigP

How to reliably detect an expired Laravel session?

I am working on a web client which does a lot of AJAX request. The backend is written in Laravel. If the backend throws a PHP exception, the backend sends a JSO

best way to compare images for similarity in android

how to compare two images, to know are they similar for 100%? I was getting path of all images from mediastore, then converted to bitmap and compared using bitm

codewars Array.diff javascript

this is my first question as I'm learning programming for few days but now and I'm stuck Task: Your goal in this kata is to implement a difference function, wh

The virtual machine 'vagrant' has terminated unexpectedly during startup with exit code 1 (0x1)

Hello i want to run my project with vagrant. When I use the vagrant up command I get the following error. I was running it before but when I tried it today I go

Getting an error "cd: '/Users/x/Downloads/' is a rotten symlink" in Fish shell

Today I logged onto my machine and tried to cd ~/Downloads, but my shell (Fish) just returns the error cd: '/Users/x/Downloads/' is a rotten symlink without any

How to penalize gaps between days in OptaPlanner constraint stream?

I have a model where each Course has a list of available TimeSlots from which one TimeSlot gets selected by OptaPlanner. Each TimeSlot has a dayOfWeek property.

How do I repeat headers and footers fixed to top and bottom of document with CSS in iText 7 using pdfHTML converter?

When I use the following HTML+CSS to produce a table with header and footer it repeats the header and footer on each page when printing and when converting to P

BigQuery - Scheduled Query Error "PermissionDenied: 403 The caller does not have permission"

Having an issue with Scheduled Queries, using a python script, I get the error: "google.api_core.exceptions.PermissionDenied: 403 The caller does not have permi

Getting error every time while installation of truffle in window10

Every time when I try to install Truffle on my PC Windows 10 it's showing npm error install latest verion of vs code and many more things how do I tackle it ?

Case shell command not working in terminal

Trying to figure out operating system to run a command in my package. Found this : case "$OSTYPE" in solaris*) echo "SOLARIS" ;; darwin*) echo "OSX" ;;

Redirect URI mismatch , why?

Following the directions here using latest/last python 2.7: https://github.com/youtube/api-samples/tree/master/python For the https://github.com/youtube/api-sam

How to use a loop inside a slick slider in Vue.js

I'm using vue-slick link https://www.npmjs.com/package/vue-slick inside a bootstrap modal and when i use a v-for loop to loop through the items it display's thi

How to add more than 16 blocks in a section in shopify?

I am building a new page for team members. made new section for it, and try to add a team member on the panel, but can't add more than 16.

mongoDB search query taking long when I use regular expression and case-insensitive

I am using MongoDB\Driver\Manager my query is shown below. $globalSearchValue = 'Test'; $mongo = new MongoDB\Driver\Manager("mongodb://localhost:27017"); $b

Assert anonymous object equivalence

I'm sure i'm missing the obvious... Say we have: [Fact] public void SomeTest() { var a = new { SomeProp = "hello", AnotherProp = 9 }; var b = new { Some

Output a nested relation's nodes while keeping tags in Overpass-api

I'm trying to custom render some golf courses by hole. The goal is to show a vector image of each hole and it's associated features. I'm able to recurse through

Stretch body when navigation element is being hidden

Whenever I toggle the menu on the left to slide away, I want the body element to stretch to full width, how can I achieve this? Is using translate option not go

Snowflake trial data in wrong format

I am trying to run the Snowflake trial. The file is at s3://snowflake-workshop-lab/citibike-trips Supposed to be CSV but is Parquet. Ideas?

Pytesseract - using .traineddata file on hosted server (Heroku)

I have a Vue, Django integrated project. I hosted the Vue project on Netlify and the Django project on Heroku. A python script (integrated into Heroku) is calle

how to pass a variable to REST API with NodeJS

I must use NodeJs to set different API routes to provide front-end functionalities. I have designed the server as : routes=> controller => models The snip

Is there a NodeJS equivalent to print a stack trace like Java's SIGQUIT handling?

Can I get a stacktrace from an arbitrary running NodeJS program, preferably without altering the code itself? I can do this trivially for Java but can't seem to

How to parse json in snowflake to get the count based on certain field in json

[ { "type": "ENTITLEMENT", }, { "type": "ENTITLEMENT", }, { "type": "ROLE" }, { "type": "ACCESS_PROFILE" } ] I have a column wi

How to stop the execution of a running code in x11

I have a program that draws on a x11 window and I'd like to quit it as soon as I press any key. With the code I have, I cannot stop the program with a keypress

cypress test asserting a filtering operation on array of objects expecting undefined

I have a cypress test over an API. When I do cy.getUnits(u.email) I'm expecting a 200 OK response similar to this in the body of the response {   &ld

django.core.exceptions.FieldError: Unknown field(s) (Actions) specified for Copyrightrece

I want to create 2 models in models.py and 2 forms in forms.py for webpage. but it shows unknown field error #models.py class Copyrightapp(models.Model): S