Latest Questions

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

Cobalt love.plot has asymmetric error bars that I cannot remove

I have a quasi-experimental dataset with two groups and two assessments (pre-intervention and post-intervention) that has a little bit of pre-test missingness (

How can I implement webview background audio play on Vimeo in react native?

Now I can play videos from vimeo in react-native. import WebView from 'react-native-autoheight-webview'; <WebView allowsFullscreenVideo scrollEnabled={false

How can I remove shadow above AppBar for Android in Flutter?

How can I remove the shadow above the AppBar for Android in Flutter? On the iOS Simulator the following Code works fine. Code: return Scaffold( ext

Does npx no longer do install-less run?

From the nodejs.dev site: npx allows you to run that npm command without installing it first. If the command isn't found, npx will install it into a central ca

Cannot request microsoft access token for OneDrive file upload within PHP

I need some help. Since 2 days, I'm reading several tutorials and trying out code snippets I've found to get an access token from Microsoft to upload a single s

Is it possible to stroke "transparent" with SVG.js?

I'm using SVG.js and want to draw an invisible border around a shape. I use the stroke() method to do this, and I thought just setting the opacity option to 0 w

drop same values in different columns by pair (drop connected components)

after applying levenshtein distance algorithm I get a dataframe like this: Elemento_lista Item_ID Score idx ITEM_ID_Coincidencia 4 691776 100 5 691777 4 691776

ElasticsearchException invalid missing tagline - Opensearch

Currently trying to start my app but unable because of this exception being thrown when starting app Caused by: org.springframework.data.elasticsearch.Uncategor

Texture transformation

I am working on eigen transformation - texture to detect object from an image. This work was published in ACCV 2006 page number 71. Full pdf is available on cha

Read attribute from XML in SSMS using XML.Node

I'm trying to read an XML file, the aim is to get ddscontrol to return 888 in one record and 999 in the other. Similarly for tooltip I need to return TTT111