15 questions
1 vote
1 answer
2k views
Adafruit-PlatformDetect unable to detect board
Im trying to import board on a feather m4 expressx and getting the following error. Ive run the command it promoted me to do below and nothing changed. All libraries and software is updated. Im still ...
0 votes
1 answer
91 views
Browser: How to give a different default app download URL for Linux, macOS and Windows platforms?
I have a need to provide a default application download URL in my primary site call to action (CTA) link for Windows, macOS and Linux. In my case this is for an application built using electron-...
4 votes
1 answer
8k views
How to detect Linux or macOS or Windows in powershell?
I use uname -s in bash scripts to determine the OS and it returns Linux, Darwin or MINGW64_NT... when its running on Linux, macOS or Windows. EDIT0 : I want my $PROFILE script to detect the OS whether ...
1 vote
1 answer
835 views
How can I check whether an ISA extension is supported by current ARM CPU?
When a userspace program on x86 needs to determine whether e.g. AVX extension is supported, it can use CPUID instruction. Is there any similarly OS-independent way to check support for an ISA ...
1 vote
1 answer
536 views
How to detect a smartphone through JavaScript/CSS?
I've seen around the web that the best way to make a responsive design is to use CSS @media queries. This does not seem like a practical solution as many phones identify as screen and have as many ...
0 votes
1 answer
939 views
Code / Ascii function in VBA Excel on MAC vs on PC
On a PC I have these chars with their ASCii code 178,188,189 respectively. But when I use the CODE function on MAC VBA Excel I always get 95 for all three different chars. char PC MAC ² 178 ...
161 votes
5 answers
150k views
Detecting Windows or Linux? [duplicate]
I am seeking to run a common Java program in both Windows and Linux. The program needs to do some things differently on each platform. So how can / should my Java program detect it is running under ...
1 vote
2 answers
2k views
Padding different in chrome mac vs firefox and chrome pc
I'm trying to align the navigation to the banner below on the website I'm creating here: http://35.9.51.41 I've been able to make it so it aligns in Chrome and Safari on my mac, and in IE, but it is ...
1371 votes
38 answers
1.7m views
Detecting a mobile browser
I'm looking for a function that returns a boolean value if the user is using a mobile browser or not. I know that I can use navigator.userAgent and write that function by using regex, but user-agents ...
15 votes
1 answer
28k views
Detect different device platforms using CSS
I'd like to say that I have read and tried many variations of the instructions here: http://www.cloudfour.com/ipad-css/ Detect iPhone/iPad purely by css Detect Xoom browser (Android) http://www.w3.org/...
2 votes
0 answers
2k views
Automatically convert Mac file path to PC file path
I want to create a script that will always run in Windows Explorer that will take a Mac OS X path and convert it to a Windows path automatically. So if I receive a Mac path and am working on Windows ...
6 votes
6 answers
4k views
Compiler version, name, and OS detection in C++
I need to detect the OS name, compiler name, and version of the compiler with C++, as I need to change the setup for each case. How can I do that?
33 votes
2 answers
22k views
Detecting the platform (Window or Linux) by Groovy/Grails
Is there a way to detect the platform (Window / Linux) in which the website is running by Groovy / Grails?
72 votes
6 answers
41k views
Reliably detect Windows in Python
I'm working on a couple of Linux tools and need to prevent installation on Windows, since it depends on FHS and is thus rendered useless on that platform. The platform.platform function comes close ...
297 votes
31 answers
232k views
How to detect Windows 64-bit platform with .NET?
In a .NET 2.0 C# application I use the following code to detect the operating system platform: string os_platform = System.Environment.OSVersion.Platform.ToString(); This returns "Win32NT". The ...