Change Audio Output with Powershell in Windows 10

I have always wanted to change audio outputs in Windows 10 with a single key from my keyboard. I have a Steelseries Apex raw keyboard, which has a ton of macro keys, but there wasn’t a simple way to do it before. Not until I saw cdhunt’s WindowsAudioDevice-Powershell-Cmdlet. With this, I can simply create a one-line Powershell file for my Realtek Digital Output:

Set-AudioDevice -Index 3

Same goes for my Samsung TV and Acer monitor, which has inbuilt speakers. After this, I thought I was good to go, once I had set the script to one of my keyboard’s macro keys, but unfortunately Steelseries Engine 3 doesn’t support .ps1 files as executable macros. So, I had to turn to PS2EXE-GUI to turn my .ps1 files to .exe files. After this, I just had to point the macro key actions to right files and I was done.

Hopefully this helps someone else, who wants to do the same.

Fingerpori RSS-feed

Olen käyttänyt Kimmo Suomisen tekemää Fingerpori rss-feediä jo useamman vuoden ajan, mutta tämän vuoden puolella kyseinen feedi on mennyt rikki muutamaan otteeseen. Tästä johtuen päätin tehdä oman feedini HS:n Fingerporeille.

Feed löytyy osoitteesta https://darkball.net/fingerpori/.

HS:n sivun parsintaan olen käyttänyt siimeonin hs-sarjis bash-skriptiä, joka ei tosin toiminut HS:n muutoksista johtuen niin minun täytyi korjata se itse. Kyseinen skripti antaa minulle linkin uusimpaan Fingerporiin, jonka tallennan tietokantaan ja rss-syöte hakee sitten tietokannasta kaikki Fingerpori-linkit syötteeseen. Skriptissä on myös tarkistus sille, löytyykö Fingerporin osoite jo tietokannasta, jolloin sinne ei tallenneta mitään.

Logitech Driving Force GT (DFGT) Shenanigans

Some time ago I decided that I want to get myself a wheel and pedals set for some driving and rally games on PC. I looked around and decided that DFGT would be fitting wheel and pedals set for me since it wasn’t that expensive and many people said it is good for beginners. Since the wheel is not manufactured anymore, I had to look around for used wheels on the internet. I found one for 60 euros on Finnish site tori.fi

The problems started after I tested the wheel on my computer. Initial calibration was good, but as soon as I started playing with it, the wheel started ”drifting” (it lost calibration) and became misaligned. I started googling and found out that this is very common fault with Logitech wheels (DFGT, G25 and G27) and it is caused by broken optical encoder disk.

There is an easy way to fix this, which I tried first but it didn’t work on my DFGT. At this point I contacted the person who sold me the wheel and informed him about the fault in the DFGT. There is a brass version of the encoder disk. It costs about 35 euros, shipping included. I demanded a refund of 35 euros from the seller since the fault had to be present before he sold the wheel to me. He denied this, but eventually refunded 20 euros because he sold me a broken item.

I ordered the brass version of the wheel, which came in 8 days from Thailand to Finland. Very fast shipping in my opinion. Turns out, I had ordered a wrong version of the encoder disk, since there are 30 and 60 slot versions. I looked at my broken encoder and thought ”well, this must be the 60 slot version” and ordered that. Turns out it wasn’t. I contacted Glenn who sells these brass encoders and kindly asked him if I could do an exchange since I ordered a wrong version. He agreed and I paid 8 dollars re-shipping fee after I had returned the wrong version.

It took 6 days for the correct encoder to arrive. It took me several tries to get the wheel working with the correct encoder, since I had bumped the optical encoder sender and receiver components. I had to bend those and get them in proper angles, but eventually I got it right and wheel started working and it no longer drifts while gaming.

Scan quickly from terminal and convert image to .jpg

I played around with few different scanning softwares on Ubuntu, and noticed that it is possible to scan from terminal by issuing quickscan command. By searching more, I found out that the image it creates is in .pnm format. I decided to add converting images from pnm to jpg format in the script.

The script can be found at Github https://github.com/ikoutone/quickscan. You can also copy the file called ’scan’ to /usr/bin/ folder on your linux distribution so you can access the scan command anywhere by just typing ’scan’ in terminal.

Mobius WebGUI

https://darkball.net/cgi-bin/mobiusgui

If you click the link above, you’ll see a site filled with different options for Mobius actioncam. This site allows you to create your own SYSCFG.TXT file that you can save in your camera SD card. I moved from Windows 7 to Ubuntu 14.04, and discovered that the mSetup program for Windows didn’t recognise the mobius through Wine emulation software. I have taken inspiration from mobiusgui.com, which isn’t working with the newest Mobius firmware (2.25) when writing this post. The site I have created works at least with firmware 2.25, but I haven’t tested if it is backwards compatible with older SYSCFG files.

The code behind the site is simple, bash and some html to show the site and options. It also includes some javascript for disabling specific options just like mSetup does on Windows. If you find anything that is wrong with it or you have any comments, please contact me via email ilkka@darkball.net or below this post.

Parrot A.R Drone 2.0 Power Edition

I recently got myself a drone. I got interested in them after taking part of sweepstakes where you could win DJI Phantom 2 drone, but I missed my chances.

Below is the video of me doing my first outdoor flight with my drone. I had too steep angle, so my drone went too fast for the first time. That’s why the video is quite bumpy.

After this video, I ordered a sports cross from http://centralusdronesales.ecrater.com/. Kyle has good selection of mods, spare parts and such. While I was installing it, I also balanced and straightened my props. Before this there was small amount of ”jello effect” on the videos it recorded, but after balancing it’s all gone. I’m very happy about this. Kyle did a tutorial with hairdryer, but since I didn’t have that I used a heat gun. I had to be careful because too much heat could melt the plastic propellers.

Below is a picture of my drone after I had finished the sports cross install and put it all back together. I’m very happy about the drone and think Parrot has done marvelous job with creating a device that is fully repairable and modifiable.

Netgear Universal WiFi Adapter (WNCE2001)

I have had a problem with my Playstation 3 and wireless, even though the Playstation and my wireless modem are in the same room, the connection has always been slow. Plus the Playstation doesn’t support Wireless N-standard, but my modem does. I had been looking for a device like this for some time on Amazon UK, but the offering wasn’t good, or I didn’t find them with the terms I used. Whenever I found something, the seller didn’t ship to Finland. Thankfully I managed to find this in one of the stores here in Finland.

Netgear makes it very easy to set up. There is a guide with instructions and the support for Wi-Fi Protected Setup is there too. I wasn’t sure if my modem had the support for Wi-Fi Protected Setup, so I chose to do the configuration manually in browser. It was a one minute job, and very easy. After configuration, you simply plug the network cable from this adapter to Playstation and power it up.

What about speed and reliability? I have used this for little under a month and download speeds on my Playstation have grown significantly. Only once it has started to act up by my Playstation 3 showing ”internet cable unplugged” message, but it was only because the adapter was right next to Playstation in small space that gets heated by the Playstation.

I also watch movies and tv-shows from my laptop with PS3 Media Server. Before I had to reduce the quality because the wireless was slow and couldn’t keep up with the bandwidth required for the stream, but now I don’t have to worry about that. I can get good quality HD over WiFi and the only problem is whether my laptop can encode the stream fast enough, but for now it can handle it.

Overall, it was well worth the money.