Vik's Blog
  • Home
  • About Me
Sign in Subscribe

ruby

A collection of 2 posts
ruby

Playing Mp3s In Ruby On Windows

I recently needed to play music in Ruby in order to create an alarm clock of sorts. The code to do this was (surprise surprise) fairly simple, but I want to post it for posterity. require 'win32ole' player = WIN32OLE.new('WMPlayer.OCX') player.OpenPlayer('C:\alarm.mp3') This will open
Jan 11, 2012
ruby

Create a new ruby process in Windows

I recently had a problem whereby I needed one Ruby program to spawn another Ruby program, but I did not need or want the two programs to interact after the second program was instantiated. I solved this issue by using the system function in Ruby and the Windows start command.
Jan 11, 2012
Page 1 of 1
Vik's Blog © 2023
Powered by Ghost