Streaming

Using XSplit with Virtual Audio Cable

My headphones are connected to Speakers (G510 Gaming Keyboard), which is my default audio playback device. I was encountering a problem where I did not want my Skype conversations to be streamed when using XSplit. But XSplit seemed to pick up whatever was going through the default playback sound device. In order to resolve this I installed Virtual Audio Cable and performed the following steps: 1. I routed Line 1 from Virtual Audio Cable to…

Continue reading

Oracle VirtualBox

VirtualBox error – UUID already exists

I wanted to utilise the following setup: 1. Base VM (Eg. Base) that is used as a template 2. Copies of that VM (eg. JayVM, JayVM2) Since Base VM was not registered in VirtualBox, I was successfully able to create JayVM by copying the vmdk files (Windows_XP.vmdk) from Base VM to a new folder C:\hosted images\JayVM. However, I soon encountered the following error when copying the vmdk files of Base VM into new folder c:\hosted…

Continue reading

PeopleSoft

FTP Class in PeopleSoft

Here’s a class I created to allow FTP from within PeopleSoft. Use it at your own risk:

Continue reading

PeopleSoft

Using Rept to pad zeroes

I was creating a PeopleCode script to populate test persons in my database. I needed the persons to have IDs that would be padded with 0s where necessary. For example:

Solution: 1. Determine how many people you are creating (eg. 100). 2. Find the number of digits of that number (eg. 100 has 3 digits) 3. Subtract that from the number of the person that you’re currently trying to create an id for (eg.…

Continue reading

PeopleSoft

FindFiles function does not return a sorted array

I had a series of files with the following names: JM001.pdf JM002.pdf JM003.pdf .. JM100.pdf JM101.pdf One silly assumption that I made was that the FindFiles PeopleCode function returned a sorted array of strings. While this seemed to be the case on Windows environments, it was not the case on UNIX systems. Fortunately all I had to do was sort the array in ascending order after the call to FindFiles:

Continue reading

Windows

Re-enabling AutoPlay in Windows 7

I noticed that the AutoPlay feature stopped working for me some time ago. It may have something to do with the fact that I have virtualization software such as VMWare and Daemon Tools installed. I managed to re-enable the AutoPlay functionality by changing the following value in the registry:

The value was set to 255 (in decimal) or ff (in hexadecimal), meaning that AutoPlay was disabled for all devices. Once I set this value…

Continue reading

Text Editor

Opening EditPlus and Sublime Text from PowerGREP

I use PowerGREP for all my grep needs. I also link PowerGREP to EditPlus (my preferred text editor) so that I can easily view/edit the file. Here is what I specify in the Command line option for the PowerGREP Preferences so that when I click on a line number in PowerGREP, it automatically opens EditPlus at that line number:

Here is what I specify for Sublime Text:

Continue reading

PeopleSoft

Manually coding effective-dating

Here is a template that I usually work from to programmatically implement effective-dating for a field. Usually PeopleTools automatically takes care of effective-dating, however there are certain situations in which this does not occur. Eg. when clicking on a hyperlink or button that then modifies a non-derived record-field on the page.

This particular scenario can be written more succinctly as shown below:

It all depends on your requirements. I usually start from the…

Continue reading