Latest Questions

Automate to run a script after a TFS checkin

Im using Visual Studio. After I check-in something in TFS, is there a way I can automatically run a script? Edit: Using Visual Studio 2019, TFS 2017, Right now,

How can I get N smallest number in an array?

I'm trying to get the N smallest numbers (given by the user) in an array without using methods like sort()... in the last step, I keep getting only the smallest

NodeJs - Get last modified file in sub directories of directory

I have the following code to list all folders within a directory, and it maps each folder's name and date created. I'm struggling to get the last modified file

I have a problem when referencing a control element on an OOo spreadsheet from macro

I have a problem when referencing a control element on an OOo spreadsheet from macro. I've tried to use something like .getControl("Checkbox1"), but it`s not w

Do you have recommendations for printing tables based on analysis using lm_robust (OLS with clustered standard errors) and cjoint (AMCE-analysis)?

I have encountered some problems with printing my regressions in R with two different analysis. Usually I would use the stargazer to print the table and/or hand

How to delete a cookie?

Is my function of creating a cookie correct? How do I delete the cookie at the beginning of my program? is there a simple coding? function createCookie(name,va

Smallint stayed null after executing update SQL statement in Sybase

The DB was Sybase. I executed update SQL statement like UPDATE table_name SET smallint_col = 0, datetime_col = CONVERT(datetime, '1999-09-09') WHERE some_col =

How do i download files from a minio s3 bucket using curl

I am trying to download contents of a folder from a minio s3 bucket. i am using the following command. I am able to download a specific file using # aws --endpo

Unable to connect to the Postgres database in Docker Compose

I am building a Node JS Web application. I am using Postgres SQL and Sequelize for the database. I have the docker-compose.yaml with the following content.

How to trigger AWS lambda functions manually which is already scheduled using event bridge rules

I am using event bridge to trigger a lambda function at 8 everyday to perform some ETL operations. At times i receive requests to trigger the lambda manually on

error gradle when update to bumblebee android studio version

today, i update to bumblebee android version, and i create new project and i import some lib, include dagger-hilt. in build.gradle (module) i insert: plugins {

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified

App crashes at runtime with the following error : java.lang.IllegalArgumentException: maa.abc: Targeting S+ (version 31 and above) requires that one of FLAG_IM

C# access to stack object property

How can I access the objects property in this situation? Araba araba = new Araba(); araba.Renk = "mavi"; araba.fiyat = 12345; // I created this class and it wo

random an infinite generated grid of pictures

I have some trouble with this web app I'm making, I need to make an infinite and random grid, but I don't know how to make it random, in that way that either it

useSession not returning data as expected

UPDATE It works now. All I had to change is session: { jwt: true, strategy: "jwt" } I am new in next-auth. I was practicing next-auth sign-in with credenti

Is there any reason to keep array length -1 in iterations of a loop using arrays?

private static void SortArray(List<int> nums) { int buffer = 0; for(int i = 0; i < nums.Count - 1; i++) {

onclick() event is not working in javascript and span tag

I have written the below code to display textarea in the form but it is not working in javaascript. the real requirement is when i click on reply in span tag a

Memory error when running scipy with multiprocess under Windows 10

I write a program that will use concurrent futures ProcessPoolExecutor. When I set the worker number to 2, it runs smooth. But after I increase the worker numbe

Handle Notification Bidirectional Body Text in the Correct Way

I have a notification service that sends a notification to the client according to its language. The notification body language can be either Arabic or English.

File reading in C with fgets entering into a never ending loop

I'm attempting to do basic file reading in C with fgets. It should read one line, pass it to the tokeniser function which should split it at every ' ' and add

how to parsing web socket response (JSON) in flutter

I have a task, I want to take the data through the web socket, and display them on the screen of the application. But I did not even find a normal example to do

In D3.js, what is the difference the graphing function required to make a line graph and one required to make an area graph?

I have an application which renders a line graph from programmatically created datasets. I would like to allow users to swap between different visualization mod

Eloquent Where using CASE WHEN and withMin()

I have a query like this: Product::withMin('promotions as promotion_price', 'promotion_products.price') ->orderByRaw('CASE WHEN promotion_price IS NULL THE

CPU Percentage Scan

I need to scan through all running processes and filter the ones with high usage. I currently have the code bellow but is taking too long to scan through them.

How to capture names of clicked folders in the right pane of a GtkFileChooserWidget (GTK4)?

My box runs Ubuntu 21.10. I use GTK4, C-language and XML description of the GUI. I am new to GUIs in general, and to GTK4 in particular. The program uses a GtkF

how do I delete a Gerrit account in version 2.10?

I am trying to delete a user account on our Gerrit 2.10 server. I found this article here on StackOverflow, but it applies to version 3.0 and references branche

How to nest formatted strings in XAML?

Is it possible to nest formatted strings in XAML without creating a custom class? Here is an example of what I want to achieve: Format a string, e.g. "inner sta

Test functions cannot both take a 'done' callback

I'm trying to create a simple test with nestjs, and I'm get this error Test functions cannot both take a 'done' callback and return something. Either use a 'do

I was Getting below error when i'm to import csv file using Logstash 8.1

I'm getting below error when I was executing below command in my cmd prompt C:\Program Files\Elk Stack\logstash-8.1.2\bin>logstash -f ./logstach.conf Logstac

vuejs basic conditional rendering issue

I simply just want to show the span if the name is found in the data. If its not found in the data, I want the span to hide. I am using simply v-if or v-else.It