How to modify this command to install specific cuDNN and torch version "apt install libcudnn8"

this is my system : No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy I want to install cudnn 8.7.0 – i think exact version is 8.7.0.84_1 And also cuda11.7 this command : apt install libcudnn8 Installs : Unpacking libcudnn8-dev (8.9.2.26-1+cuda12.1) over (8.5.0.96-1+cuda11.7) … So how to modify… Read More How to modify this command to install specific cuDNN and torch version "apt install libcudnn8"

Building a docker container on top of another image… "permission denied"?

I am trying to build an extension of an existing image with FROM and then apt install additional packages on top and do own customizations. I get permission denied and "are you root" messages. Specifically, this is the image I want to extend: https://hub.docker.com/r/makarius/isabelle My Dockerfile: FROM makarius/isabelle:latest SHELL ["/bin/bash", "-c"] # Add dependencies RUN… Read More Building a docker container on top of another image… "permission denied"?

solving nested renamer is not supported with dynamic arguments

if cat_vars: df["static_cat"] = ( df.groupby("group_col") .agg({i: "first" for i in cat_vars}) .values.tolist() ) Error: packages\pandas\core\groupby\generic.py in aggregate(self, func, *args, **kwargs) 926 func = _maybe_mangle_lambdas(func) 927 –> 928 result, how = self._aggregate(func, *args, **kwargs) 929 if how is None: 930 return result packages\pandas\core\base.py in _aggregate(self, arg, *args, **kwargs) 355 obj.columns.intersection(keys) 356 ) != len(keys): –>… Read More solving nested renamer is not supported with dynamic arguments

Retrive only replacement template of regex in C#

can i get only the substitution of the Regex.Replace? Example. String text = @"asdfgs sda gsa ga s SECTOR:124 NAME:Ricko asdfgs sda gsa ga s"; String regex = "^SECTOR:(\d+) NAME:(\w+)"; String substitution = "$2 $1"; String result = Regex.Replace(text, regex, substitution); Console.WriteLine(result); Normal result asdfgs sda gsa ga s Ricko 124 Wanted result Ricko 124… Read More Retrive only replacement template of regex in C#

Change background color of combined plots in ggpubr::ggarrange

I can’t figure out why the bottom corners background is white, while the rest of the plot is grey. Is there anyway I can change the bottom corners color to the same background as the rest of the plot? The code im using for each plot is: HP_specifikationer_model1 <- ggplot(Svar_spec_data)+geom_hline(yintercept=0) geom_line(aes(y=HP1, x=kvartaler, color = "HP-BNP-KRE-REN"))… Read More Change background color of combined plots in ggpubr::ggarrange

Python functions not running correctly

I’ve written this code to convert a string to uppercase and lowercase, however when I call my functions, it doesn’t run. # take the input for the string string = input("Enter any string: ") def string_upper(up): return up.upper() print("Uppercase Output: ", string_upper(string)) def string_lower(low): return low.lower() print("Lowercase Output: ", string.lower(string)) if __name__ == "__main__": string_upper(up)… Read More Python functions not running correctly

How to get value from a vector by value from another vector?

I have two vectors: one contains numbers and names of things; second collects numbers that have already been showed to the user; I’m trying to make a history list of all objects that have been shown. Here is my code: class palettArchive{ private: std::vector<std::pair<int,std::string>> paletts; int palletsCounter; std::vector<int> choosen; public: //… void history(){ auto printHist… Read More How to get value from a vector by value from another vector?