How to obtain build configuration at runtime?

There is AssemblyConfigurationAttribute in .NET. You can use it in order to get name of build configuration var assemblyConfigurationAttribute = typeof(CLASS_NAME).Assembly.GetCustomAttribute<AssemblyConfigurationAttribute>(); var buildConfigurationName = assemblyConfigurationAttribute?.Configuration;

TensorFlow libdevice not found. Why is it not found in the searched path?

The following worked for me. With error message: error: Can’t find libdevice directory ${CUDA_DIR}/nvvm/libdevice Firstly I searched for nvvm directory and then verified that libdevice directory existed: $ find / -type d -name nvvm 2>/dev/null /usr/lib/cuda/nvvm $ cd /usr/lib/cuda/nvvm /usr/lib/cuda/nvvm$ ls libdevice /usr/lib/cuda/nvvm$ cd libdevice /usr/lib/cuda/nvvm/libdevice$ ls libdevice.10.bc Then I exported the environment variable: export … Read more

How to auto save vim session on quit and auto reload on start including split window state?

I modified 2ck’s script slightly to save a .session.vim in your current working directory instead of the directory where your current open file is in. Also, it checks if the file exists before sourcing it. fu! SaveSess() execute ‘mksession! ‘ . getcwd() . ‘/.session.vim’ endfunction fu! RestoreSess() if filereadable(getcwd() . ‘/.session.vim’) execute ‘so ‘ . … Read more

Spring Boot Actuator hides property values in env endpoint

By default the /env endpoint will hide the value of any property with a key that, ignoring case, ends with password, secret, or key. You can customize this using the endpoints.env.keys-to-sanitize property. The value of this property should be a comma-separated list of suffixes or regexes to match against property names. For example, if you … Read more

How to add user defined regions with folding in Notepad++?

For version 6.5.5 and above: Under the menu “Language” there is a menuitem called “Define your language…“ In the tab “Folder & Default” is a group called “Folding in code” where you can enter an “Open”- and a “Close”-Keyword. For versions older than 6.5.5: Under the menu “View” there is a menuitem called “User-Defined Dialog…“ … Read more

Difference between platform and platform target in VS

The first screen shot is showing the solution configuration (Debug) and solution platform (Mixed Platforms). What this is saying is that building a Debug version of the solution, the projects that make up the solution can target Mixed Platforms. If you explicitly chose x86, that means all your projects in your solution should use this … Read more

How do I get intellisense in app.config for a custom section?

XML Intellisense will not automatically work for a custom configuration section. Visual Studio may report warnings on compilation complaining that the attributes of the custom configuration section are not defined. These warnings may be ignored. If you want XML IntelliSense support for a custom configuration section (or if you just want the ‘schema not found’ … Read more

does intellij support variables in launch configurations?

There is no direct equivalent in IntelliJ. To make it easier to share configurations or other project settings between multiple developers, you can use path variables (Settings | Path Variables, see the Help for more information). To customize the options before launching the run configuration, enable the “Before launch | Show Settings” option in the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)