May 042008
 

While I’m at it, I might as well post another song that I made with the orchestra plugin. This one was supposed to have a middle-eastern sound to it, but also have a nice driving drum beat. The actual beat of the drums is pretty close to what I had in mind, but the samples themselves aren’t what I have in my head. One day I’ll get around to making this sound the way I want.

One of the problems is that my PC can’t handle all the plugins at the same time.  For some reason, the bass (which is actually a guitar emulator) takes up HUGE amounts of resources.  What this boiled down to was that I could never listen to the song in the software, I had to mute some tracks to be able to listen to something, then unmute, render to MP3, and listen to the MP3 to see if the change I made sounded good.  Very annoying to say the least!

Link:
Eastern Wind MP3

 Posted by at 12:51 pm
May 042008
 

I never posted this song up here, but I tend to want to listen to it sometimes, so I thought a nice easy way to get to it would be nice (FTP is annoying sometimes).  Basically, this is a song I wrote to play with a new orchestra plugin that I bought.  I wish I had the time and the skill to do some longer / better stuff, but I still like this:

Anyway, here’s the link:

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

 Posted by at 12:44 pm
Apr 142008
 

Tired of writing code to find the years and months between two dates?

”’ <summary>

”’ Provides an easy way to get the number if years and months bewteen two dates.

”’ </summary>

”’ <remarks></remarks>

Public Class DateSpan

   Dim _Years As Integer

   Dim _Months As Integer

 

 

   Public Sub New(ByVal StartDate As Date, ByVal EndDate As Date)

 

      Dim intTotalMonths As Integer = DateDiff(DateInterval.Month, StartDate, EndDate)

 

      _Years = intTotalMonths \ 12

      _Months = intTotalMonths – (_Years * 12)

   End Sub

 

   Public ReadOnly Property Years() As Integer

      Get

         Return _Years

      End Get

   End Property

 

 

   Public ReadOnly Property Months() As Integer

      Get

         Return _Months

      End Get

   End Property

 

End Class

 Posted by at 3:14 pm
Apr 042008
 

Clinton
Admits that she ‘Misspoke’ about her trip to Bosnia. Either you intentionally embellished (lied?) about the trip, you forgot what happened, or you believe something happened and it didn’t. In any of those cases it’s not something I would expect in my future President.

 Posted by at 4:19 pm
Apr 042008
 

Pretty simple really. Try this SQL:

SELECT CONVERT(nvarchar(20), GetDate(), 101);

or

SELECT CONVERT(nvarchar(20), CAST(’2008-04-04 16:07:07.920′ AS DateTime), 101);

If you need to use it in a comparison you can easily do something like

WHERE CONVERT(nvarchar(20), MyDateColumn, 101) BETWEEN @DateFrom AND @DateTo

Enjoy!

 Posted by at 4:06 pm
Mar 292008
 

On my truck, a 2001 Ranger, I first have to remove a little plastic plate that is above the headlight. It comes off after removing three small bolts on top. Remove that plastic and you’ll find two metal tabs behind the headlight housing (the glass part). If you pull up on those they will release the housing, and after a little bit of wiggling you’ll be able to get the housing out, and get at the rear of the housing is where you’ll find the retaining ring that holds the bulb in.

Unscrew the retaining ring (I think it only needs about a quarter turn), pull out the bulb and detach it from the wiring harness, replace with the new bulb, re-insert it back into the housing, and secure it in place with the retaining ring. Now you have to wiggle the light housing’s threaded rods (there are three) back into those tabs that you released to get it out. The threaded rods can be moved around to make this easier. When the housing is back in place, you’ll be able to see these little plastic things sticking out of the tabs, push back down on the tabs to lock the housing into place. Make sure that the housing it secure and doesn’t move around, if it does it means you didn’t get it back into place well enough. Replace the plastic plate on top and you’re done. The procedure for both headlights is essentially the same.

At first I was thinking to myself “This is so stupid and typical of newer cars.” But after I figured it out, it’s pretty easy to do. The second headlight only took me about 5 minutes.

 Posted by at 1:13 pm
Mar 202008
 

Clinton

Clinton’s current notion that Michigan voters will be disenfranchised if Obama doesn’t agree to a re-vote in Michigan is ridiculous. Its transparency is so blatantly obvious, how can anyone not see right through it?

  • She didn’t seem very concerned with it back in New Hampshire. (Reference needed: Basically “I don’t see Michigan as making a difference”)
  • Do you think she would be so concerned if she wasn’t in desperate need of those delegates?

Besides:

  • Not every State has primaries anyway (Which ones?)
  • It’s Michigan’s democratic party that screwed its own voters by moving the primary date.
  • Allowing Michigan and Florida to re-vote or something similar is a typical Democrat reaction. They (Michigan and Florida) broke the rules, and so were penalized. Now we should let them re-vote because “It’s not fair”?

McCain

McCain had one of his “Senior Moments” as people call it. Making a misstep involving Iran, Al-Qaeda, and Shiite militants A lot of people say “Oh, that’s just McCain. He doesn’t get bogged down in the details.” I’m sorry, but I think this county has had enough of a president that can’t get facts straight, and who the entire country has to sit cringing during every public appearance. “Oh please don’t let him screw up again” we think collectively to ourselves.

Obama

The fallout over Obama’s pastor Jeremiah Wright still continues, although his speech on Tuesday does seem to have helped, and was seen by many as one of the best speeches made in a long time. However, many supporters of Obama and his pastor say that those types of comments made by Wright are just part of black culture, and black church culture in particular. If you haven’t been to a sermon then you just can’t understand. Why does this make it ok? Just because these types of comments happen inside the context of a church sermon it’s now acceptable? I don’t think so. The good news is that I believe Obama when he says that he doesn’t believe in that type of language either; I certainly hope so.

 Posted by at 1:35 pm
Dec 282007
 

I need a place to keep track of all the good resources I’ve been finding on how to get a VirtualPC image running for SharePoint Developement. Here goes:

How to Build a SharePoint Development Machine:
Long list of steps and tools to getting a development SharePoint server up and running. This takes the approach that the develpoment tools should be kept local, and to use remote degugging:
http://weblogs.asp.net/erobillard/archive/2007/02/23/build-a-sharepoint-development-machine.aspx

How to create a MOSS 2007 VPC Image, the Whole 9 Yards:
20 steps detailing the entire process from start to finish:
How to Create a MOSS 2007 VPC Image: The Whole 9 Yards

Andrew Noon: SharePoint Web Parts:
Including remote debugging:
http://www.sharepointblogs.com/andynoon/archive/2006/06/20/sharepoint-2003-creating-web-parts.aspx

 Posted by at 2:40 pm
Dec 202007
 

Today at work I needed to add a custom configuration section to a 2.0 ASP.NET / VB.NET project.  After looking around, almost al the examples weren’t in VB.  The the best article I found was at (not surprisingly) 4Guys.  Anyway, the sample code was C#, so I had to convert it to VB.  Here it is for anyone who might want to D/L it.  Once you get used to it, the configSections stuff is pretty cool, although a little too much coding if you don’t really need it maybe.  Anyway, if you’ve been desperatley looking for a VB.NET example, here ya go:

Custom Configuration (VB Version)

Enjoy!

 Posted by at 3:22 pm
Dec 182007
 

My Behringer B-5 microphone started making some weird thumping noises recently. After doing some cable swapping, and creative hookups between my preamp and a pair of headphones, I became 90% sure that it was the microphone making these weird noises. Also, the noises seem to be intermittent, so my guess is that maybe one of the capacitors inside the microphone is making the noise in the signal after it heats up? I don’t know, I’m not an electrical engineer. Also, after taking the microphone apart myself, I discovered that if you’re not an electrical engineer, there will be no reason for you to open this thing up. Anyway, if you’re reading this, you have an unhealthy desire to take your B5 apart for some reason, so let’s go…

First the tools that you WILL NOT need. I discovered this through my adventure:

  • Pipe Cutter
  • Dewalt cordless drill and bits
  • Bench Vice (to hold the microphone while you attempt to drill it)

The tools you will need:

  • Something to loosen the retainer clip (that’s what I call it). I’m sure there is an official tool that can into the little cutouts on the ring, but what I used was a pair of slip-joint pliers.

Your microphone should look like this (http://photo.killfly.com/displayimage.php?album=77&pos=0) if it does not, you do not have a Behringer B5, and these instructions will not be of much help to you. Also, the image of mine has a deep gouge on the XLR end. Yours will not have this because mine is actually in two pieces. The picture was taken after my first disassembly in which I cut off the end with a pipe cutter thinking that I needed to free up the screw at that end. It turns out that the screw that is under the decal near the XLR connector does not need to be removed. (I also attempted to drill out the screw in a fit of disassembly rage).

Take off the cardoid or omnidirectional capsule, whichever is on there, and you will be presented with something like the following: http://photo.killfly.com/displayimage.php?album=77&pos=1. See the threads that are now exposed? At the tip of the threads (also visible in the picture) you can see two cutouts. This is where you should probably use a special tool to get into those cutouts, and be able to unthread this ring. The ring is actually what’s holding the contents of the microphone into the case.

Unscrew the ring: http://photo.killfly.com/displayimage.php?album=77&pos=2 (I’m using my fingers in the picture, but in reality I had to loosen it with a pair of slip-joint pliers.) One thing to note, there are two holes in the top of the microphone that look like they’re custom made for being able to unscrew the tip. This is not what you’re looking to do, you want to actually unscrew the threads themselves.

The desired result is better explained by seeing all the pieces together in a picture (or two):

In this picture you can see the case, the ring, and the capsule in the top, and the guts of the microphone in the bottom of the picture. In order to remove the guts, you’ll have to push down on the attenuation selector switch to be able to get it past the cutout on the case. When you pull out the gut, it will come out on a sled. You want to pull it out straight, because there’s a key that the XLR connector preventing it from twisting. Both halves of the key are visible in these two shot

Now that you have the sled out, you can see the contents of the microphone. If, like me, you were hoping to see a wire that might be loose, and that you could fix, you will be sorely disappointed. But it’s still kinda neat. Feel free to check out all the pics over at the photo site: http://photo.killfly.com/thumbnails.php?album=77

 Posted by at 12:52 am