Behringer UCA222 Review and FAQ

Last year I put up a short review on YouTube of Behringer’s UCA222 USB audio input/output interface for recording stuff into your computer. I just did the review for fun after getting my Ultra HD pocket video recorder but, since then, it has received thousands of views and a lot of comments too — many of which I responded to. Here is a rough overview of the device, and after that I’ll put up a small FAQ (Frequently Asked Questions).

This device basically allows you to record to your computer high quality stereo sound from any device that outputs red & white RCA cables. You simply plug in the USB to your computer (Windows, Mac OS X, or Linux) and most systems will install the software automatically. It will show up as a new audio input/output device that you may select in your recording software such as Audacity. For me, the UCA222 was actually selected automatically while plugged in.

The manufacturer claims 48khz 16bit sound quality. This is much higher quality than you’re likely to get from your built in sound card. It can also be used to replace your existing sound card to output stereo sound through the device. In fact, while plugged in, your normal sound card will be muted and you’ll have to use this one for any output.

FAQ:

Q: Can I record my guitar with this device?
A: This isn’t  used for recording guitars. For recording your guitar into your PC via USB, your best bet is to buy the Behringer UCG102, the sister product made for guitars and analogue instruments.

Q: Can you play music on your computer and have it come out through the UCA222 USB like a sound card?
A: Yes, once plugged in, all sound generated from your computer will actually now go through the stereo output on the UCA222.

Q: How is this different from the UCA202?
A: They’re the same exact device, except UCA222 is red instead of silver, and UCA222 comes packaged with EnergyXT software with a lot of free VSTs for making music.

Q: After its connected do you control the volume at the mixing board or the computer?
A: The mixing board. For me, when I plugged it in, there wasn’t anyway to control the input recording volume, it was simply set to 0.0 dB.

Full Video:

Annoying CSS issue and solutions

We know that using CSS and DIV elements is the most versatile way to layout a web page. But when you drop tables you lose the browser’s native ability to resize elements properly when the user changes the window size, views on a mobile device, or changes the font size.  Eli details some of the common problems on his blog.

One situation I was getting annoyed with is setting up a horizontal link bar, much like you’d find in the header of many websites.  If you set all the elements to float left, you have to manually specify a height of the overall horizontal UL or DIV that encapsulates the floating elements. This is fine, except if you don’t know if the floating elements will fit inside a page width.  You might want the floating elements to spill over to the next line, and appropriately push the content of the page down.

I haven’t figured out how to do this using just DIVs and CSS. But I found if you wrap the horizontal bar in a table/tr/td, the table will automatically expand to contain all the floating elements, effectively giving the whole thing a proper height. This way you can set a background on the table and it will always be shown.

View the HTML example of this problem: Floating Element Test

Using Google Speadsheets to Track Utility Usage

I’m trying out Google Speadsheets (GS) to track my monthly utility usage (I’ve also started using Mint.com to track my monthly expenditures after my brother’s recommendation). GS allows you to post your charts as an img anywhere on the web. I’m not sure yet if the image reflects the latest version of the data or if you have to repost the image each time.

I moved into the apartment Dec 21, 2008 so the data starts there.

Electricity usage:

I multiplied the dollars per kilowatt-hour by 1000 to make megawatt-hours so it would show up better on the chart
Oil usage:

You can view the spreadsheet publicly here: http://spreadsheets.google.com/ccc?key=pzQuiahdpJwqOCivSTN0BPA
You can’t edit it, but you can save a copy to your own account as a template for your own usage.

Safari Bug in JavaScript Popup Calendar by Matt Kruse

One of the most widely used (and oldest) javascript popup calendars on the web is Matt Kruse’s CalendarPopup, posted at http://www.mattkruse.com/javascript/calendarpopup/. Matt provides plenty of examples and different ways to use this handy script, which provides the user with a visual way to input a date into a form control.

However, the script hasn’t been updated in a long time, and has a long-running bug that shows up in Safari on Mac OS and Windows. The bug occurs when the user clicks to show the pop up calendar, and then clicks outside the calendar box (as if to cancel it) — the calendar is supposed to close, but it doesn’t.

Here is the solution to that bug to help all of you Google searchers out there trying to get the calendar div popup to hide when the user clicks somewhere else on the page.
In the “PopupWindow.js” file, on Line 240:

var t = e.originalTarget;

I do not think Safari supports “originalTarget” for an event, at least not in this case. In Safari ‘t’ will be undefined. After this line, add:

if(t===undefined){
t = e.target;
}

I don’t know if this works in browsers earlier than Safari 3.0, but I tested it in Firefox 3, IE 6, and Safari 3.

You can download the full combined JS source with the fix already included on my website here.

By the way, as a developer primarily working on Windows, I never thought there was a point in using the Safari browser on Windows. However, I had to test something recently in the browser so I installed it and started using it. I’m now glad I did, because it generates & logs strict HTML and Javascript errors in the error console that other browsers, like Firefox, just ignore.

Tech Talk 2

Tech Talk

By MICHAEL BUTLER

Tips & Tricks for making your computer go faster

It seems that whenever I listen to complaints from family and friends relating to their computers, they describe it as being “as slow as molasses” or “slower than a
glacier melting”. Yet, when the computer was new, it seemed to perform more quickly. How come the computer slows down over time?

Continue reading

Printing over Remote Desktop & Terminal Services

For a while I didn’t understand why some printers would print over remote desktop and others wouldn’t. After some troubleshooting with an HP LaserJet 1022 (a host-based USB printer) I discovered these helpful tips:

  1. If the printer supports Postscript or PCL, it should work over remote desktop without any additionally configuration, as long as it can print locally.
  2. If that doesn’t work or if the printer uses a custom language like GDI, if it is called “host based”, or if it is generally cheap, install the driver on the remote desktop server. Then, add a new local printer to the RDP server and pretend it is connected on LPT3, and choose the correct printer driver/model. This will force windows to load the driver, albeit to a non-existent port.
  3. If it still doesn’t work, try making it a shared printer on the client side. Make sure printing is allowed in the Windows Firewall control panel.

On the RDP server, you can also check the Application or System Event Log (Right click My Computer -> Manage). Any printer related errors or warnings are recorded there.

Microsoft Certified

I’m now considered a Microsoft Certified Professional, since I’ve passed the “Installing, Configuring, and Administering Microsoft Windows XP Professional” Exam at a local testing center.
I had already been working with installing and configuring Windows XP for a couple of years now, so I knew a lot of the material already. It wasn’t easy though, there were a lot of networking questions and arbitrary questions about the unattended / automated installation options.

Printing PDFs from the Command Line

I’ve been struggling for a while to get PDFs to print correctly using Adobe Reader from the command line, so here’s how to do it from a batch file:


:: This is a DOS-Style path to the AcroRd32.exe, in this case Adobe Reader 7.0
SET PATHTOADOBE=C:PROGRA~1ADOBEACROBA~2.0ReaderAcroRd32.exe
:: This adds /h to tell Adobe Reader to minimize, and /p tells it to print the document to the default printer and close right after.
SET PRINTCMD=C:PROGRA~1ADOBEACROBA~2.0ReaderAcroRd32.exe /h /p
:: This will first launch Adobe Reader in a new process. NOTE: whatever directory you are in at this point,
:: Adobe Reader will only look for files here unless you supply full path file names.
call start /MIN %PATHTOADOBE% /h
:: ...
:: do stuff...
:: ...
:: Here is the actual call to print the PDF. Because Adobe Reader is already launched in its own process, the batch file will continue executing immediately after the command is invoked.
%PRINTCMD% "C:myDocument.pdf"
:: Batch file will continue executing other commands