Archive for February, 2008

IE, ImageIO, and Microsoft’s ‘image/pjpeg’ prank

Thursday, February 28th, 2008

Today I came across an issue at work regarding the made up MIME type of ‘image/pjpeg’ while uploading images from IE 7. Java’s ImageIO was choking while trying to upload this type of file because it is not in the list of supported MIME types. The supported MIME type list can be viewed by invoking ImageIO.getReaderMIMETypes(). After reading many blogs of others pounding their head, making fun of Microsoft, and using other solutions like ImageMagick, I found a solution. Add this to your list of supported types and move on. This format is made up and will not cause any problems. Pass the input stream onto your File IO and be done with it. Microsoft owes me half an hour of my life back.

Build your own record player

Tuesday, February 12th, 2008

diy turntable diagram
In my quest for a great sounding stereo and my annoying need to build things I have decided to build my own turntable. Luckily my friend Mark, microelectronics expert extraordinaire, will be teaching me the finer points of circuitry. I will be handling the sourcing, fabrication, and/or assembly of the plinth, bearing, and tonearm. This is a very exciting project for me because I have a limited knowledge when it comes to creating my own circuits. This is one of the last nagging things that I have been dying wrap my head around. More to come as the project progresses. As always I will delving further into the details on my wiki.