Neoxone
1Sep/100

Change Default Audio Output Device in Windows XP (Python)

I got tired of going in the windows control panel to change the default output setting. So I made a python script to switch between the two output devices. It uses the _winreg module which will be the winreg module in Python 3. I also mapped the script to a key on the the keyboard for more effectiveness. Now I just need to find a way to change output settings of a running process.

##########################################################################
# Quick Python code to switch audio Output on Windows XP
#   Notes : Runs on Pythons 2.7
##########################################################################

# Import Windows registry API
import _winreg

# Open current default output device key
key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER,
                      "Software\\Microsoft\\Multimedia\\Sound Mapper\\",0,
                      _winreg.KEY_ALL_ACCESS)

# Retreive the Playback value
a = _winreg.QueryValueEx(key,'Playback')

# Switch between outputs
if a[0]==u'SoundMAX HD Audio O':
    _winreg.SetValueEx(key, 'Playback', 0, 1, u'FREETALK Everyman')
else:
    _winreg.SetValueEx(key, 'Playback', 0, 1, u'SoundMAX HD Audio O')

# Retreive the Playback value again
a = _winreg.QueryValueEx(key,'Playback')
print a[0]
4Aug/100

Website constave.com

Back in 2006, built a small website for Construction de l'avenir.

Filed under: Projects No Comments
4Aug/100

CMS

Content Management System for Ville de Métabetchouan Lac-à-la-Croix built in PHP with MySQL.

  • Manage menus, articles, news, events, contacts, links
  • Add, edit, delete
  • Easy to use WYSIWYG editor
  • File uploader

Screen captures :

Filed under: Projects No Comments
4Aug/100

Ultragestion

Ultragestion is tool built in Microsoft Access to produce invoices and reports from the data provided by Ultramar cardlock system.

  • Import data from email into database
  • Configure user and price profiles
  • Perform query on database from a friendly user interface
  • Send invoice by email to customers
  • View accounting reports

Screen captures :

Filed under: Projects No Comments
9May/100

Willkommen in München

Everything went better than expected. JD was on time, no ashes to stop us and the party was reunited in Frankfurt succesfully. Quick transit from Frankfurt to Munich and here we are, the three of us at the hostel, finally.

Since it's 5 in the morning, I'm just gonna list stuff I remember from the past few days.

  • We sang Celine Dion's My Heart Will Go On, people didn't like the concept
  • You wake up thinking you won't be drinking like last night. By noon, you decide to drink maybe just one, for the day. At 6, every good intentions you had are gone and you're just drinking again by the liter. At 2 in the morning, you think you had enough, so you're slowly sipping your beer. Like the barman will let you be a sissy like that, sure. First thing you know you're encouraged to gulp it so it can be refilled for another customer. It's 4, you're drunk and you fall dead asleep after emptying your bladder for the fourth time. Repeat cycle.
  • Outfarting your friends either by smell or the sound of cracking thunder is an everyday challenge.
  • Every piece of this city is a pod of history. There is anecdotes, stories and events to discover everywhere you look at.
  • Local traditions are sometime awesome (like the one where you capture the pole of another city and they have to throw you a party to get it back), sometime over the top (Failure to throw said party may result in your city being burnt to the ground).
  • Going to Dachau... there is just nothing I can say about that.
  • There is an obsession of taking your clothes off in public pubs. I've already seen too much.
  • Strange dances were experimented.
  • I'm the goofy one indeed.
  • Cricket is an interesting sport. You know it's not serious when you actually eat WHILE you play and it can end in a draw after 5 days of play.

I will now let the pictures do the talking. See you all in a bit!