Posts | Tags | Archive

Sending a file via a P2P connection in a web browser

Sharefest is a site that allows users to send files of arbitrary size via a P2P connection. To use it, go to the site, select a file to share, then give the link to friend. All they have to do is visit the URL and they'll be able to download the file you shared.

This transfer is directly from your computer to theirs, without the file being uploaded anywhere between. This also makes it easy to stop sharing the file. Just close the browser window and the file becomes inaccessable.

Sharefest is open-source! Check out the code on GitHub.


Backup/Restore a Gmail account

Gmvault is an open source project that allows users to download all of their emails, as well as the labels.

From there it's as simple as opening them up in a program like Outlook or Thunderbird to view them. It also includes an option to restore the emails.

Most email clients have the capability of doing this, but this was by far the quickest way. Automatic incremental backups can also be done by running a 'quick sync' regularly.


How keyboard media keys work

A recent project of mine involved tearing apart an old keyboard (a Dell Y-UK-DEL1) and using the media keys to make a simple media controller box.

Everything went smoothly with the build, but when I plugged it in, the music media key launched VLC instead of my preferred player, foobar2000. After spending a while in the control panel looking for how to change this behavour and finding nothing, I used Process Explorer to trace the registry key it was using to determine which application to launch.

Turns out, the registry keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey store the information regarding what program gets launched when a media key is pressed.

In this location there are a bunch of keys that map button IDs to file associations. This is done by looking up the button ID when the button is pressed, then looking at the contents of the string called "Association" in the button ID's key.

With my keyboard, the music media key maps to button 16. On my system, within the key called "16", there is a string value called "Association". This was set to the ".cda" extension, which is associated with VLC. After changing the ".cda" association to open using foobar2000, whenever I press the music key on my media controller, foobar2000 opens.

© Carey Metcalfe. Built using Pelican. Theme is subtle by Carey Metcalfe. Based on svbhack by Giulio Fidente.