Is there a way to detect the operating system in ruby? I am working on developing a sketchup tool that will need to detect Mac vs. Windows.
11103
I want my Ruby program to do different things on a Mac than on Windows. How can I find out on which system my program is running?
73437
How can I get the filename from a file path in Ruby?  For example if I have a path of "C:\projects\blah.dll" and I just want the "blah".  Is there a LastIndexOf method in Ruby?
58195
Is there any console emulator for Windows that interprets ANSI coloring?   We use rspec and a part of our team use Windows and the special string for coloring are not very useful for them ;).
60
I need a cross platform method of determining the MAC address of a computer at run time.  For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and run a regex across its output.  I don't like using a package that only works on one OS, and parsing the output of another program doesn't seem very elegant not to mention error prone.   Does anyone know a cross platform method (windows and linux) method to get the MAC address?    If not, does anyone know any more elegant methods then those I listed above?
2167
I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different properties based on whether I am on a Windows or Unix platform). What is the safest way to do this with 100% reliability?
9836
In a  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 problem is that it returns "Win32NT" even when running on Windows Vista 64-bit.  Is there any other method to know the correct platform (32&nbsp;or 64&nbsp;bit)?  Note that it should also detect 64&nbsp;bit when run as a 32&nbsp;bit application on Windows 64&nbsp;bit.
23733
I know about the "cooperative" threading of ruby using . How can I create real "OS-level" threads in my application in order to make use of multiple cpu cores for processing?
63887
A friend of mine asked a question that got me thinking. Is it possible (theoretically, I assume it hasn't been done) to run two operating systems simultaneously on the same computer? Not in the sense of multitasking in one window, but being able to quickly switch from one to the other without restarting. Could something low-level be created that would intercept system calls (or whatever needs to be done) to make each OS think it is running alone? Or hardware itself that would accomplish this?  I'm not talking about dual booting or using virtual machines, but actually running two OS's side-by-side.
118879
I am writing a bash script to deal with some installations in an automated way... I have the possibility of getting one such program in 32 or 64 bit binary... is it possible to detect the machine architecture from bash so I can select the correct binary?  This will be for Ubuntu machines.
93010
How can I find out whether my install of Windows (specifically XP and Vista) is either 32 or 64 bit?  Additionally, how can I find out if my hardware will support a 64-bit operating system?
118536
I understand that it is Illegal to run OSx on a windows machine or PC for that matter, but is it illegal to do the reverse? Why or why not?
58481
I'm running Windows and the shell/OS automatically runs Python based on the registry settings when you run a program on the command line. Will this break if I install a 2.x and 3.x version of Python on the same machine?  I want to play with Python 3 while still being able to run 2.x scripts on the same machine.
30341
I love my MacBook (2008, aluminum, Intel processor with the low-end nVidia chipset). I don't like running Windows. I don't want a Windows Bootcamp partition, because I found I never used it. (I really only used it for Oblivion, and even then stopped eventually because I enjoyed it more on the XBox, and hated the reboot-into-Windows process.)  I'm using WINE to run Fallout and Fallout 2, with great success. I also have the Steam client, which I've used to get Portal and a second copy of Civ IV (+ addons, mostly so I didn't need the DVD with me).  What I want to know is, can I buy a Windows game from the Steam client for the Mac, and then run it via WINE? If so, do I need to take any special precautions? (For instance, my current winecfg emulates a 640x480 desktop to enable Fallout and Fallout 2.)
71296
Just wondering what !! is in Ruby.
3229
I am trying to setup a bunch of development projects in my Mac. I have to run various tools like python, ruby, scala, groovy etc.  To see if a tool is available I use options like   ruby --version.    Instead I would like to see all the list of tools available in Mac terminal via a single command. What is the command/options for it?
119258
I was wondering if it is somehow technologically possible for Windows to add some sort of Linux interface?  I think it would win over many programmers to develop on Windows.  Any ideas on this?
78005
How do I change (switch) the input language in Mac OSX  (English->Russian->Hebrew). In Windows it is done by pressing alt-shift.  What is the equivalent in OSX ?