The best thing to do after making a mistake is immortalise it in a bug report - because git history isn't enough! In this commit, I fixed an error where DEPEND wasn't defined but we set: RDEPEND="$...
#ifdef __CUDA_ARCH__ #if (__CUDA_ARCH__ >= 500) #define MACRO 10 #elseif (__CUDA_ARCH__ < 500) #define MACRO 32 #endif #endif __global__ kernel () { // some device code using MACRO } int...
Is it better to use static const variables than #define preprocessor? Or does it maybe depend on the context? What are advantages/disadvantages for each method?
I'm trying to dynamically define color for each seria depending of their type. Below is my code which doesn't work but showing what I'm trying to do. I would like to define colour for certain type ...
In Symfony 2.8, in a custom form type, is it possible to make setAllowedValues return a result that depends on the value of another option? There isn't an obvious way to access an Options...
JSDoc type annotation example - returning different types depending on whether it is defined or not - Toast composable example - .js
Define pitch of a sound - The Pitch of a sound can be defined as the quality of the sound and it depends upon the frequency of a sound. The higher the pitch the higher the frequency and the lower t...
Unity MaterialPropertyDrawers to support showing or hiding specific properties in the inspector depending on defined keywords in the material (place scripts inside "Editor" folder) - ShowIfKeywordB...
I need to define an Enum type in Java. However, the values in the enum depends on a parameter. public class EnumTest { private Language lang; public enum Language {English, Spanish, Chin...
For i = 1 To n Sheets(2).Copy After:=Sheets(Sheets.Count) Sheets(Sheets.Count).Name = "SheetName(i)" Next Here I want to define sheetName depends on variable "i". For example, when i = 1, ...