Latest Questions

SOAP url to service

I have to make an SOAP web-service and struggles to get the path right: I am bound to use SOAP and I wish (The requirement states) the path to be: http://localh

Data structure for iterating between players

I am new to programming, so I started working on a small guessing game for n players In theory they are supposed to take turns trying to guess some String, I've

Can't set default image django

I was create a profile for user. I done set up all the Media and Static. But when I set default and upload_to in image field, it error not found image. I had tr

How bad it is to lock a mutex in an infinite loop or an update function

std::queue<double> some_q; std::mutex mu_q; /* an update function may be an event observer */ void UpdateFunc() { /* some other processing */ std

Anylogic transitions - Rate condition

I was trying to create a transition between two states with a rate logic: I want that event to happen x times randomly, but only for a limited model time interv

minimum value in dataframe greater than 0 in R

I have a dataset with ~2500 columns in R, and I am trying to find the minimum value greater than zero from the entire data frame. Once I have found this number,

is it possible to insert a gzipped string (Json string) as a varchar in postgres

Will I run into any weird byte sequence if I attempt to store a binary (a gzipped Json string) in a varchar column. Or Should I base64 encode it after compressi

How to add GCP role to the grantable list?

I am trying to get a service account set up in GCP so I can use docker pull from my personal shell as well as from Google Cloud Shell, where it works automagica

Select image for flutter web on mobile device

Im currently using https://pub.dev/packages/file_picker for this function FilePickerResult result = await FilePicker.platform.pickFiles(); if (result != nu

Can't edit Definded step filters in eclipse

I want add aop packages to improve debug experience, so i go to Preferences -> Java -> Debug -> Step Filtering, enable the "Use Step Filters" and add a

How to make GPR accept multiple sources in the same project having the same file name?

I set out to rewrite an OSS project in C piece by piece to Ada. First stop being to replace the build system with GPR. On doing so I stumbled upon a problem: it

How to make where query in HttpGet request in .net core web api

I'm trying to make a HttpGet request in my ASP.NET Core Web API. The problem is that I don't know how to make get request with query. This is my model: public c

'WordListCorpusReader' object has no attribute 'add'

enter image description here Code: import re import nltk nltk.download('stopwords') stopwords = stopwords stopwords.add('will') wordcloud = WordCloud(width = 3

Adjust place of downloading buttons of a DT table in Shiny

please see this picture I have a DT table in the shiny. I added buttons for downloading the content of the table (Copy, CSV, Excel, PDF). But I would like to ch

Sampling texture with MTLPixelFormat.r32Float

I have a texture with MTLPixelFormat.r32Float, and I would like to sample it with linear interpolation using texture.sample(mySampler, float2(u, v)). I am confi

Call setState from class that extends StatefulWidget

If I update a variable using class object, the build method should get called, but I am unable to call setState from the StatefulWidget class. class CustomError

get a blank white screen with only app.vue items but not other component

i have an app build on vuejs and build with cordova. after i cordova build ios it successfully build the app but when i cordova emulate ios it is only showing a

fread a float array after a fwrite immediately will cause a file offset problem

Initial the integer array[] right line 21 will cause the failure of the data[] array fread from data.txt . int main() { FILE * file0 = NULL;

Avoid using deprecated API for UtteranceProgressListener

I am using android.speech.tts.TextToSpeech and would like to have an UtteranceProgressListener that does not override the deprecated onError but rather uses the

Xamarin Shell: Redirect to different page and remove current page from nav stack

I imagine this is pretty straightforward, but I'm struggling to make sense of how to do it via the documentation... I've got a tab page, that is opened from a f

C# ASP.NET Core DI with logging

I'm looking for DI solution for the following problem. I'm writing a custom SeriLog sync that requires a dependency from my serviceprovider. I can't seem to fig

How can I stop Apache tomcat to log 404 errors in Application Insights? GET/* Error

I have deployed an angular application in a Tomcat app server in Azure App Service. In order to enable fallback into index.html I included a web.xml file inside

Using only Lodash, how do i isolate an element that occurs the most in an array?

I am currently following a tutorial that covers Lodash and it is prompting me to return this value : { author: "Robert C. Martin", blogs: 3 } given this ar

realm swift - filter objects with a property that starts with a string included in a list

I have a list of strings filterList = ['x0', 'x1', 'x2'] My object is as follows: class Item: Object { @Persisted var name: String? } I want to get all obj

Can someone help me fix the bottom two rows of my nested loop? They shouldn't be the same lengths, but they are

I'm working on a project where I'd like to create the following pattern: X XX XXX XXXX .. and so forth. There are twenty rows in all, and the twentieth row sho

"gdstk.h No such file or directory"

Answered below! Thanks @drescherjm I am having some trouble generating the initial red rectangle in gdstk. I have copy-pasted source code below into a "Hello Wo

How to find data in other row with laravel-excel

I'm using maatwebsite/excel to import an excel file with laravel and save data to database In my excel file I have a column name "Ref" and an other name "toRef"

How to make MathJax faster?

I was working on a website that contains a lot of mathematical expressions. I use MathJax with React (using 'react-mathjax-preview') but I noticed that renderin

How to set the download file extension for blob data

In my site video use the blob data, when the video was downloaded, the saved filename is the blob name with .txt(4671addc-3ce0-4eb6-b414-ddf3406b1fe5.txt) exten

Graph API - Temporary Access Pass Generation

Have the following script that is trying to create a csv of TAP codes using the Graph API. Currently getting an Error 401 Unathorised error when reaching Invoke