Questions tagged [platform-agnostic]
40 questions
924
votes
27 answers
How to identify which OS Python is running on
What do I need to look at to see whether I'm on Windows or Unix, etc.?

Mark Harrison
- 297,451
- 125
- 333
- 465
298
votes
6 answers
Node.js - Find home directory in platform agnostic way
Process.platform returns "win32" for Windows. On Windows a user's home directory might be C:\Users[USERNAME] or C:\Documents and Settings[USERNAME] depending on which version of Windows is being used. On Unix this isn't an issue.

Matthew
- 11,203
- 9
- 38
- 44
120
votes
16 answers
Are there any smart cases of runtime code modification?
Can you think of any legitimate (smart) uses for runtime code modification (program modifying it's own code at runtime)?
Modern operating systems seem to frown upon programs that do this since this technique has been used by viruses to avoid…

deo
- 1,009
- 1
- 8
- 15
29
votes
5 answers
How does Amazon's Statistically Improbable Phrases work?
How does something like Statistically Improbable Phrases work?
According to amazon:
Amazon.com's Statistically Improbable
Phrases, or "SIPs", are the most
distinctive phrases in the text of
books in the Search Inside!™ program.
To identify…

ʞɔıu
- 47,148
- 35
- 106
- 149
15
votes
4 answers
How do I send a patch to another developer and avoid merge conflicts?
How do I get a patch from a commit in order to send it to another developer? And how do I best avoid a merge conflict with this patch when merging our trees at a later date?
If you know how please explain how to do this in your VCS of choice such as…

Spoike
- 119,724
- 44
- 140
- 158
11
votes
4 answers
Why is loading inline JavaScript inside views with AJAX bad?
We have a tabbed interface, inside one of these tabs is a privacy form. This privacy form, as well as using an external JavaScript file for the bulk of its work, also uses inline JavaScript as it currently relies on dynamic code (in the server side…

Dr. Frankenstein
- 4,634
- 7
- 33
- 48
10
votes
2 answers
Bluetooth from the Command Line
How do I access files on another device/machine over Bluetooth from the command line?

Agnel Kurian
- 57,975
- 43
- 146
- 217
8
votes
5 answers
3D Audio Engine
Despite all the advances in 3D graphic engines, it strikes me as odd that the same level of attention hasn't been given to audio. Modern games do real-time rendering of 3D scenes, yet we still get more-or-less pre-canned audio accompanying those…

Kent Boogaart
- 175,602
- 35
- 392
- 393
8
votes
7 answers
What does "Core" mean in the Context of Library Design?
I often see other developers naming libraries with "CORE". What does it actually mean?

Dkong
- 2,748
- 10
- 54
- 73
7
votes
1 answer
Using LLVM as virtual machine - multiplatform and multiarchitecture coding
I'm currently working in a pet programming language (for learning purposes), and have gone through a lot of research over the past year, and I think its time to finally start modelling the concepts of such a languague. First of all I want it to…

Salvia
- 182
- 2
- 11
6
votes
1 answer
When do we have web server and an application server as two separate physical tiers?
Typically when an application is deployed on a server farm, it has a central database, one or more application servers and one or more web servers.
Since all the services in the application tier are going to be accessed via the web server, why not…

Unmesh Kondolikar
- 9,256
- 4
- 38
- 51
6
votes
4 answers
Determining whether a file is a duplicate
Is there a reliable way to determine whether or not two files are the same? For example, two files with the same size and type may or may not be the same binarilly (yeah, I know it's not really a word). I assume that comparing one or two checksums…

Todd R
- 18,236
- 8
- 31
- 39
5
votes
2 answers
Precisely what owns the 'current working directory'?
I'm aware what a working directory (wd) is and it's purpose (for writing software at least).
What I don't understand is the ownership of the wd. Furthermore, I want to understand how the answer may vary between operating systems so any clarification…

Samuel Harmer
- 4,264
- 5
- 33
- 67
5
votes
2 answers
WCF client (Add Service Reference) hates WebGet and WebInvoke...really, it does
I have been working to create WCF services that will operate independent of .Net clients. Thanks to Google and StackOverflow, I have been able to create both simple xml and json services without Soap wrappers and a bunch of fancy WCF stuff that I…

Rich
- 36,270
- 31
- 115
- 154
4
votes
2 answers
What is the safest cross-platform way to get the address of a byte in a word?
The following sets byte to 1 on big-endian and 0 on little-endian.
uint16_t word = 0x0001;
uint8_t byte = *(((uint8_t *)&word) + 1);
Is there any way to get the address of the low or high byte that is cross-platform safe?

jestro
- 2,524
- 4
- 27
- 46