Latest Questions

How to approach writing a WPF Custom Control in F#?

I am trying to understand how a wpf custom control could be written in F#. As an example, I have the following C# code for a drag and drop on a canvas (in C#).

Find the longest integer in a vector using while loops

Working on this program that's supposed to take a vector of integers as input and return the one with the longest integer. Example (vector 20 738 5942 125) and

Stacked Barchart: Display only sum of each stack

According to this question, it's necesarry to use the StackedValueFormatter in order to only display the total sum of every stack on top of the bar. However, it

Flutter Ambient UI - What should be the optimised approach for production level responsive app in web, android and ios platform using single codebase?

I was trying out flutter platform to create a multipage website with android and ios responsiveness using single codebase for my flutter app. I've already tried

How to write Scala console output to a XML file?

I'm trying to convert json to xml, I am getting full output in console if the json file is small but I am trying to pass large json file n I'm not getting the

SOLR MoreLikeThis with date field returns Invalid Date String

Tested with SOLR 6.6.6 and now with SOLR 7.7.3 we get the following error: "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "r

asp.net core binding null in controller post request (list with inside elements lists in view)

I have a view with a list of items that among their properties have a list of items (in View asp.net core). I use a generic list to have common properties that

Converting unsigned to signed integers (Using Excel formulas or Power Query)

I have a list of unsigned 32-bit unsigned integers that actually are supposed to represent 32-bit signed integers. For example 62714 = binary 1111010011111010 =

How to use tokenColorCustomizations VS Code text color changer in dart?

tokenColorCustomizations does not stick with dart, I can change JSON file but the color does not stick to it.

Multisite in TYPO3 with individual databases

Is it possible to have multisite setup in Typo3 (i.e. only one typo3 instance with multiple sites inside it) with individual database for each of the sites?

For loop doesnt execute for all instances - OS Module Python

The code below reads the first 4 letters of a filename, and if a folder with those 4 letters exists then it shifts that file to that folder. Otherwise, it creat

How to request to Gunicorn and respond with Daphne? Using Django channels, Nginx, Gunicorn, Daphne

I'm facing a strange issue in deploying Django app with Nginx, Daphne and Gunicorn. As of now, I have successfully deployed my Django app. My HTTP requests are

How to set container in stack in Flutter

I have created a simple app, and facing an issue. I just want the content a little bit over the bottom of the image. but can't set position to container. gets e

Direct url with hash value does not work with vue-router

Navigating to url: site.com/#locallink 'redirects' to site.com, first time entered in the browser - in other words, does not jump to the anchor. If I simply re-

Injecting a single dependency to a view model

I want the LoginViewModel to have a single dependency of LoginViewModelService. 
LoginViewModelService in itself cannot have an implementation. Its method

How to know if the replaced tab for a previously discarded tab is the same?

So you discarded a tab and later when you click on the discarded tab , it reloads the page. First: OnUpdated() gets called with changeInfo.discarded === true

How to filter the elements from nested lists composed of strings

I am trying to access elements from the nested lists. For example, file = [["Name","Age","Medal","Location"],["Jack","31","Gold","China"],["Jim","29","Silver","

Why my angularjs controller gets called twice?

I have been looking to find solution to below. However, it keeps evading me somehow. I am new to AngularJS. Need some help. I have an index.htm file loading ini

Which one is more efficient on saving rendering? (React)

I am wondering two cases, which is better for writing? case 1 import * as React from 'react'; const TestComponent:React.FC = () => { const [count, setC

type 'bool' is not a subtype of type 'List<String>' in type cast - flutter/dart

I'm trying to set a list of string in the shared preferences but for unknown reason, it is throwing up the following error type 'bool' is not a subtype of type

How Can I Use Turkish Alphabet In My Game For Unity?

I am developing a 2D Video Game as a school project which I am currently using Text Mesh Pro on. But there is an issue. Since my game is Turkish, I need to writ

How to print data if only matching string found in list?

key_word = ["apple","Apple","Boy","boy"] title1 = "Where the boy" title2 = "The Boy playing cricket" title3 = "hello world" title4 = "I want to buy apple vine

Creating cookie with a form values makes a null cookie

First of all, i need to create a cookie with a values that are in a form, and a lot of values are in a radio input type, but i ran into a problem with creating

How Do I Call An Authenticated HTTP Trigger Google Cloud Function Via A Next.js (with Typescript) App?

I created a Google Cloud Platform account, and made a simple hello_world type Python "Cloud Function" that just spits out some simple text. I made this function

odoo 15 database (zip includes file store) restore error

When I try to restore database backup to another server (digital ocean to test server on aws), showing an error like this, I tried to change odoo base to same a

How to color a grayscale image based on a mask?

I have two images: A grayscale image, and a binary mask with the same dimensions. How do I color the image on the mask, while the rest of the image remains gray

ERROR React Native - VirtualizedLists should never be nested inside plain ScrollViews with the same orientation

I'm using a library called PhoneInput from "react-native-phone-number-input." This is the code below: <View> <SafeAreaView style={styles.wr

How can I diagnose the cause of AWS Cognito's SAML assertion processing errors?

I am trying to integrate AWS Cognito with a third-party SAML SSO Identity Provider. The third-party IdP is responding with a successful SAML assertion upon logi

Escape special characters in XQuery or XSLT

I have an xml that has uname and pwd. The pwd has special characters like ‘&’. I am using a XQuery or XSLT to transform it.. the output generate