Questions tagged [platform]

The platform tag is to be used for hardware or software related issues relating to a platform

A platform consists of some sort of hardware architecture and a software framework, including application frameworks. The combination allows software to run. Typical platforms include a computer architecture, operating system, programming languages and supporting services and applications (with user interfaces).

854 questions
325
votes
5 answers

How do I check if I'm running on Windows in Python?

I found the platform module but it says it returns 'Windows' and it's returning 'Microsoft' on my machine. I notice in another thread here on stackoverflow it returns 'Vista' sometimes. So, the question is, how do implemement? if is_windows(): …
gman
  • 100,619
  • 31
  • 269
  • 393
73
votes
18 answers

Can you do Desktop Development using JavaScript?

I know there's JScript.NET, but it isn't the same as the JavaScript we know from the web. Does anyone know if there are any JavaScript based platforms/compilers for desktop development? Most specifically Windows desktop development.
Chris Pietschmann
  • 29,502
  • 35
  • 121
  • 166
56
votes
1 answer

How to call methods in Dart portion of the app, from the native platform using MethodChannel?

I am writing a native plugin that, in some cases, has to call functions in the Flutter portion of the app, written in Dart. How it's achieved, is explained here: https://flutter.io/platform-channels/ Furthermore, an example of invoking a method from…
2beens
  • 743
  • 1
  • 6
  • 8
43
votes
8 answers

Why is int typically 32 bit on 64 bit compilers?

Why is int typically 32 bit on 64 bit compilers? When I was starting programming, I've been taught int is typically the same width as the underlying architecture. And I agree that this also makes sense, I find it logical for a unspecified width…
user2341104
40
votes
4 answers

Is there an platform independent equivalent of os.startfile()?

I want to run a program on several platforms (including Mac OS), so I try to keep it as platform independent as possible. I use Windows myself, and I have a line os.startfile(file). That works for me, but not on other platforms (I read in the…
Lewistrick
  • 2,649
  • 6
  • 31
  • 42
37
votes
2 answers

What is the hard recursion limit for Linux, Mac and Windows?

Python's sys module provides a function setrecursionlimit that lets you change Python's maximum recursion limit. The docs say: The highest possible limit is platform-dependent. My question is: What is the highest possible limits for various…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
34
votes
13 answers

Application failed to start because it could not find or load the QT platform plugin "windows"

I have looked through all of the questions that appear to be related on stack overflow, and none of the solutions seem to help me. I am building a Qt application with this setup: Windows 7 Professional x64 Visual Studio 2012 Qt 5.2.0 built with…
gollumullog
  • 1,249
  • 2
  • 14
  • 22
33
votes
6 answers

What Does a Standard "Installation" actually do?

I'm just a hobbyist programmer more or less and have grown up coding-wise in the .NET ClickOnce world. When one "installs" a program, what actually happens?! Also: Some little apps/tools just run from the exe. Why do most programs need a fancy…
MrGreggles
  • 6,113
  • 9
  • 42
  • 48
32
votes
2 answers

Android Developer Dashboard national/regional version

As many of you may know, Google has provided us with a nice Dashboard that shows us the current distribution of active Android devices along certain characteristics, such as platform version or screen size. It would be nice to have some similar…
Vincent
  • 1,027
  • 1
  • 11
  • 20
31
votes
12 answers

how do I detect user operating system

I have the following code to obtain user details: HttpBrowserCapabilities bc = HttpContext.Current.Request.Browser; string UserAgent = HttpContext.Current.Request.UserAgent; ENT_TrackingData ret = new ENT_TrackingData() { IPAddress =…
Funky
  • 12,890
  • 35
  • 106
  • 161
31
votes
7 answers

How to use Platform.OS to elements in react native?

I want to use just KeyboardAwareScrollView without any functions on IOS and given below code for android. I know that I need to use Platform.OS === 'ios' ? : BUT I DON'T UNDERSTAND HOW TO REALISE IT. Please help me render(){ return( …
Just Ahead
  • 2,377
  • 6
  • 16
  • 25
30
votes
4 answers

LocalDateTime.now() has different levels of precision on Windows and Mac machine

When creating a new LocalDateTime using LocalDateTime.now() on my Mac and Windows machine i get a nano precision of 6 on my Mac and a nano precision of 3 on my Windows machine. Both are running jdk-1.8.0-172. Is it possible to limit or increase…
Tobias Marschall
  • 2,355
  • 3
  • 22
  • 40
28
votes
7 answers

Detect underlying platform/flavour in Cmake

Does anybody know any cmake variable or hook or something which can give me underlying platform name/flavour name on which it is getting executed ? e.g. Linux-CentOs Linux-Ubuntu Linux-SLES I know cmake has "CMAKE_SYSTEM" variable but that doesn't…
voidMainReturn
  • 3,339
  • 6
  • 38
  • 66
28
votes
3 answers

What common algorithms are used for C's rand()?

I understand that the C specification does not give any specification about the specific implementation of rand(). What different algorithms are commonly used on different major platforms? How do they differ?
Jetbeard
  • 323
  • 1
  • 3
  • 6
27
votes
2 answers

Platform's default charset on different platforms?

Some legacy code relies on the platform's default charset for translations. For Windows and Linux installations in the "western world" I know what that means. But thinking about Russian or Asian platforms I am totally unsure what their platform's…
Robert
  • 39,162
  • 17
  • 99
  • 152
1
2 3
56 57