Latest Questions

R function which transforms data adds new column depending on counted grouped rows

I am new in R, so maybe anyone could help me. I have dataset like this ID Date Revenue Sales 1 2022.01.01 10 20 1 2022.02.01 11 21 1 2022.03.01 12 22 2 2022.01

In UICollectionView not obeying zIndex of UICollectionViewLayoutAttributes

I'm trying to make the top cell of the collection be behind all the other cells by the zIndex factor ┌───────

How to detect Siri Remote 2 button presses on macOS?

There are apps for using Siri Remote 2 with macOS. (SiriMote, Remote Buddy). I want to create the same app myself, but I am stuck with detect button presses. I

Space elements visually, but not when selected, with HTML/CSS

I've written a Wordle AI that displays its guesses in the same style as Wordle. (In case you're unfamiliar, each letter has its own colored square.) Sometimes

How do I download attachments from Workday through web service or RAAS by File_ID or WID?

I have a report (as a web service) that gives attachments attached to the Customer Payments. I had to use the report because sadly, Get_Customer_Payments web se

Passing file from JavaScript to Go server

I am trying to pass a set of FORM values from client to server. FORM values include files, user names and other details as well. how do i decode the file in the

Is there a maximum number of continuous pages per process in Linux? If so, how to set it to unlimited?

The following code will generate errno 12 cannot allocate memory #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #include <fcn

Parsing FtpWebRequest ListDirectoryDetails line

I need some help with parsing the response from ListDirectoryDetails in C#. I only need the following fields. File Name/Directory Name Date Created and the F

Adding Additional information to dropdown box options

I am wanting to add hidden/additional information to a dropdown box. Currently, it works using javascript function myFunction() { var copyText1 = document.get

Why can't I plot from .csv file

\documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{external} \tikzexternalize \usepackage{filecontents} \begin{filecon

vuegoogle Autocomplete how to use filter option

I used the 'vueGoogleAutocomplte' package to get location details by typing in an input box. It works, but it does not show all places. for example, if I am typ

Flutter can't install firebase onto macOS

I tried to install the firebase package for flutter. After running flutter pub add firebase_core It states "successfully installed". When I then try to import

Docker compose specify container network as host network

What is the docker compose equivalent of running a docker container with network of container === host network ? docker run --rm -d --network host --name my_ngi

select concat(min(released_year), ' and it\'\s ', pages where released_year min(released_year),

what i want to do is to get the number of pages for this writer be I have written a code and have a problem the code is: select concat(author_fname, ' ', author

Type 'string' cannot be used to index type 'T'

I am wondering what the correct way is to type this? I have tried quite a few ideas and can't make it happy. I have tried <T extends object> (same error)

Simple expression calculator in C - stacks' application

Write a program that solves arithmetic expressions, passed as a string, printing its value. Use two stacks, one for operands and one for operators. Consider on

how can I loop through search function - python

I am trying to make search program but I stuck in some loop part. There are several steps for function works. First, I will get a word(input) from users. Then,

How can I observe an array of CoreData objects in SwiftUI? [closed]

I am relatively new to SwiftUI and am having troubles finding a solution to a problem I have with my UI not updating when a change is made to

WaitForSecondsRealtime not working as expected

So decided to give game dev a try, picked up unity,Now I decided to create a simple ping pong game. My game has Bat.cs class, ball.cs, and GameHandler.cs. The G

stripe upcoming invoice for same billing cycle in stripe

I'd like to show a customer a preview (or a quote) of what their subscription charges will be if they make changes to their subscription. For this, I'm using th

Align children with first child in Column

How can I align my widget to take the same width as ClipRect image? Right now it overflows in my screen. Find attached how it is and how I desire my output woul

Why win32com doesnt show me all emails

I want to parse emails in python through the Outlook application. Running this code I get only a few of my emails. import win32com.client outlook = win32com.cli

Array as argument and using the array in the new function in javascript

var filterKeys = ["hello this is javascript", "Movies"]; var title= "Hello" searchKeyInNo = keySearch(filterKeys, title) function KeySearch(filteredArray, sear

RStudioapi AND RMarkdown not working together

The following code runs nicely in the console or from an .r-file: library(rstudioapi) thisisthepathvariable <- rstudioapi::selectDirectory(caption = "Select

Creating default object from empty value in Laravel 8

For some reason, I still get a warning message: Creating default object from empty value. Product controller public function update(Request $request, $id) {

uninstalling LINUX on same drive of current OS

last year I had to install Linux on my laptop, however, due to some issues I couldn't install it on other drives and it was forcing me to install it on the c dr

Best way to work with a small db in swift ios app from a performance point of view?

I'm using an sqlite db to populate an ios app with data about irregular verbs -- it's a language learning app. The db has 3 tables, verb categories, verbs, and

Why doesn't python3's print statement flush output when end keyword is specified?

from sys import argv, stdout as cout from time import sleep as sl print("Rewinding.......",end = '') # If end is given output isn't flushed. But why? cout.flush

My SQL Store procedure print dynamic QUERY

I am very to the new MYSQL and creating a store procedure using dynamic query which is containing the steps as CREATE TEMPORARY TABLE(THE NAME OF THE TEMPORARY

flutter app - trending posts by using google analytics data api

In my app, users create posts and I'd like to show trending posts by the number of views, comments, etc in a specific date range. To do that I thought I can cre