Latest Questions

Collectionview specific layout

I am trying to find an approach to get my collectionview to have this layout for the cells with paging The image should always be in center and have parts from

Matlab new C++ MEX function runnign speed vs C Mex interfaces

Recently I am working on boosting Matlab project performances. As you may know, Matlab 2017 introduced a new C++ Mex function to avoid unnecessary data copies,

brew\homebrew use ruby api and not its cli api

rather than using the brew through the command line, i would like to use its api in ruby. for instance, rather than executing brew info --json wget in the comma

What input type should I use for code which combines text and numbers? How to declare in TypeScript to avoid errors?

I'm using VueJs (coming from React so I'm new), and I have this input which contains a code => combinations of vowels and numbers. I'm having 2 problems, fir

Trying to import CSV file to Analysis Services Tabular project

I have Microsoft Office Professional Plus 2019 and Access database engine both 64-bit installed on my machine and was trying to import a CSV file to Analysis Se

The opposite of compiletime.constValue[T] in Scala 3

If we have a transparent inline def f(...): Boolean = ..., is it possible to convert the result of f to true or false types, assuming the result of f is known a

Flutter MapBox - Unhandled Exception: type 'Null' is not a subtype of type

I am just following this guide https://github.com/Imperial-lord/mapbox-flutter, In turn by turn navigation, getting error like 'Unhandled Exception: type 'Null'

Mocking methods that call JNI with Mockk

I am trying to add unit tests to an existing Android app that has some JNI libraries (only for ARM). I am using Mockk and Junit4, and I have the following: This

Replacing JS require('...') with ESM imports

After updating node-fetch to v3, the following JavaScript error message appears when trying to launch my Electron app: Uncaught Exception: Error [ERR_REQUIRE_ES

Serverless offline is Unable to determine function entry point

I've been using serverless framework with azure functions. But when I try to run serverless offline, functions are not working and gives an error. It was runnin

Django attribute error while creating superuser

I've created a custom user model using AbstractBaseUser. When I try to create a super user using terminal via createsuperuser command. I get in create_superuser

Strtok returning the same and incorrect string infinitly

So I am studying system calls in c and I am doing this exercise that I have to make a simple program that search for a file in the PATH (kinda similar to which

No manual entry msg - Fedora

I'm trying on to use the man pages on RHEL. Every time I'm searching for manuals, I'm getting this error message: # man ls No manual entry for ls I've tried th

Why is std::ctype's virtual destructor protected?

I was trying to write std::ctype<char> c; but I couldn't, because that class's is both protected (directly) and virtual (indirectly, through facet). But

Dynamic script content when calling spa.UseAngularCliServer(npmScript: "start");

I need to pass in dynamic content into the start script for Angular when starting it from .Net. Right now I have: spa.UseAngularCliServer(npmScript: "start"); A

MySQL join query taking far too long

The following query is taking forever in MySQL 5.7.23, on a macOS 10.13.6 on 2018 Macbook Pro (A1990) with 50GB of free space: INSERT INTO `a_sg1lib` (`book_id`

How to handle special characters in the string while updating a table using python

Im trying to update some rows to a table, in one of the row a string is having few special charecters. I should be updating the string as is to the db. I have t

How do I chop/slice/trim off last character in string using Javascript?

I have a string, 12345.00, and I would like it to return 12345.0. I have looked at trim, but it looks like it is only trimming whitespace and slice which I don

MongoDB aggregate for daily won/lost games, $cond is always false

I'm doing a couple of $match's and $unwind's and end up with a collection of documents looking like this: { _id:249776348, StartGameTime:1615789789, team:0, win

Convert Tableau filter interactions onto R

I've been using Tableau to visualise some data on activity counts at different sites. I'm trying to convert to using R studio instead. However, I'm facing some

Getting app service logs for internal calls in Azure

We have a .Net app that uses Apereo CAS for authenticating. We verified that the app service is not able to hit the CAS back end to submit the ticket coming fr

How can I plot the annual growth rate in R?

I wrote a function to calculate annual growth for my parameters: growth.rate <- function(data){ for (i in c("Area", "Rainfall", "Yield")) { T1 <- ma

'_ctypes' module missing when python is installed via pyenv

I am trying to set up an environment using pyenv and homebrew on Ubuntu 20.04. There are no problems with my system install of python. However, when I install a

How to compute value for InputSlider R Shiny?

I'm doing a Shiny app and I have a question. I want to have a slider input which min and max values depends on values in some dataframe. That's easy to make. Bu

Create a custom Component for React Material-Table row item

I learn React JavaScript and want to create a Material Table with only one Column and every row is a complex component like this; The Squares with number are pa

How to get from private key and seed phrase to account address?

This info are of a metamask dummy account. Does anyone know the process to get the hash_mm from seed and/or private_key? seed = "else wrist ..."

Struct member names as map keys

I'm looking for a way to map a struct's member to a string (or some other type for that matter): struct Foo { int intMember; int otherIntMember; cha

trying to send data from one script in python to another script

I am trying to write a script so when an IP address can't be seen a message gets sent with a telegram letting me know which computer is offline I have been able

How to measure RTT/latency through TCP clients (created in GoLang) from a TCP server created in GoLang?

so I am hosting a TCP server through GoLang and then I want to connect to my TCP server using multiple TCP clients and measure the RTT every time a new client i

Jmeter - How to run the same thread group but with different properties consequentially using command line

What I want to achieve is: I only have one thread group and the only thing that changes are the Thread Properties I want to run more than one thread group sequ