Tuesday, April 28, 2015

Corvette - Headlight Units Complete

Got a call from the paint shop.  They had finished matching the paint color.  It was done with a Kandy (House of Kolor form of Candy paints), custom mixed.  They sent it to the lab and had a lab run some color checks against it.  The lab then sent them the mixing instructions, and the group had their painter do a few mixes and applications to get it close.  The result :


It looks fairly accurate, but against the car itself, it looks a tad bit dark.  However, it's close enough for my tastes (and shouldn't look out of place) to allow me to move on.  Here we go with finishing the electric conversion, followed by finishing the dashboard!

Thursday, April 2, 2015

Never Trust a "Parts Guy" Completely

I thought I'd tackle the bearings, brakes, and rotors/drums on the S10 while I had an evening free on Thursday.  So, Tuesday, in preparation, I headed over to the parts store (O'Reily) to pick up the parts.

He told me what to get.  I'd never done the S10 before, so I thought I needed some advice.  I worked with the guy for a half hour until I had a all of the parts.

Thursday rolls around, and I open the front bearing assemblies... only to find that they weren't front bearing assemblies.  The idiot at the counter thought they were sealed bearing assemblies.  They were the rotor with the outer bearing race.  I had to make a run back and pick up the bearings, hoping they were there.  Frustrated, I was a little vocal.  I picked up the bearings and ran back to the half-done job.  Got it done, and took it for a test drive - it behaves fairly great.  Much better brakes, no squeaks.

So, here's what I learned .... use www.rockauto.com - and get what you need.

Monday, March 30, 2015

Down with forked-daad, up with mt-daapd

I have a page that is a popular destination for music lovers out there.  It's my post on running forked-daapd on CentOS.  It was a great little post at the time, and was needed.  It was the daapd server at the time that had the most recent activity in development, so it was the one I opted to use.

It was rather ugly to get installed, frankly.  It had so many dependencies to other libraries, all in an attempt to make it "easier to code".  But it definitely helped me realize something : all of you open-source wookies out there seem to think, "hey, a  new library!  I should get in front of this bleeding edge so that all of my L337 friends think I'm the bomb!"

Frankly, I hate you punks.

Why the hell should I have to install 5 different libraries for each package only to have those libraries used ONLY by that package?  That's ridiculous, and frankly, I'm not gonna put up with that crap any more.

No more packages that require any more than one  obscure library, or it's on my hitlist.  Perhaps you will understand if I explain this with the forked-daapd server setup.  It required a recompile of sqlite3, antlr3, and a number of other packages that only forked-daapd needed.  I went through the hoops once.  BUT, every time I updated the system and the sqlite package was updated, or some other dependency was updated, I had to recompile every damn piece of the puzzle, and sometimes they wouldn't even compile any longer!  I am NOT going to release packages for something old, and something that was causing a pain for me.

So, I went back to the older mt-daapd service.  Wary of what I might have to install, I threw the source down and fired off the compiler.  It needed a few things.... but they were all provided by the distribution!  After not having my wife iTunes be able to play the networked data, I had it up and running fairly quickly!

For all of those who are trying to use forked-daapd..... just give up and go with mt-daapd .  It works just as well!

How An Apple a Day Keeps the Anger Away

I am not an Apple fanboy.  I DO enjoy their hardware - the time they put into the fit and finish makes it almost worth the cost of getting around their stupid "come to us for everything" mentality.  Don't get me wrong, OS X has been a great system, but I absolutely love the mechanics of the open source world.  Give me a nice XFCE interface any day of the week, and I will be a happy camper.  I view it this way - yes, you can re-compile most applications to run on Mac (macports, etc), but that can be a REAL pain.

A few weeks ago, I had the thought of getting rid of the Mac, and going with a cheaper Toshiba with Linux running on it.  It would be just as effective, plus I'd be completely back in the open source world.  There was just one problem.

I also own an iPod.

Reality set in when I thought, "I haven't synced this iPod in two years!  I should update the songs on it, and this is a good chance at doing this completely open source."

I have a large music collection running on a server.  It's not a Windows server, nor is it a Mac.  It's Linux.  That has the majority of my music on it, not the Mac, or the Windows desktop that my wife uses.  My problem is that I had certain criteria I needed to meet :
  • I didn't want to copy music files all over the place to do it - so the iPod sync had to be done on the server.
  • I wasn't going to install Mac OS X onto the server, as it doesn't even run a graphical interface.
  • It HAD to be compatible with my iPod.
This set me off on a rather long, laborious search.  I started off with rhythmbox (everyone pointed that way).  Unfortunately, it requires a GUI.  That was nixed fairly quickly.

I then looked for Banshee - which wasn't available in the specific CentOS instance I used.  That one was out.

There was a software package called "gtkgpod".  It required a GUI.  But that triggered a look at a library the same group released, called "libgpod".  A library.  How nice.  Just a note for anyone looking at using that library, their API document was terrible.  It was great at showing minor python plugins.  That was about it.  I searched for examples all over the place, and after hours of not finding anyone who had implemented the API but gtkpod, I threw my hands in the air in frustration (trust me, all five fingers were up), and installed the required graphical binaries.  I didn't fire up the GUI on it (no monitor hooked up), but I did use X Forwarding..... and it didn't do much for me.

I went back to the source for libgpod, and built some software examples from their test code.  I had things that could finally do what I needed (or so I thought).  I altered my code to fit my needs, and fired it off.  It took four hours to sync some songs to the iPod.  But, it finished!

I ran over to the server, disconnected the iPod, and.....

.... it said "0 songs".

What?  I plugged it back in, and ran my test cases against the iPod again.... it said I had 783 songs on it, and identified all of them.

Thoroughly frustrated, I started searching for firmware hacks.... nothing for mine (iPod Nano 4G) that was considered "ready" for the world.  I didn't want to play with "bleeding edge" code right now, I have too many other irons in the fire.

Then, I saw a random post somewhere about a software package called "rePear".  It was actually kind of tough to find the "source" for it.  I finally found their home page (download links were not up to snuff, but I was desperate at this point).  I kept poking around and finally found the source on SourceForge.  I had to ignore the links that said "win32" - even though I was working with Linux.  All the way down in there, in code from 25 February 2009, I found a tar ball.  I quickly grabbed it, downloaded it, and read the usage.  Ugh!  I had to copy python scripts to the iPod root device!

At this point, I thought, "what can it hurt?"  I dropped the python files into there, and ran "repear.py config" (first setup requires this), manually cp'd the music (and play lists) onto the iPod, and then ran "repear.py freeze".  I waited for it to finish, synced the filesystems (sync;sync;sync), and ejected the iPod.  I ran over with my fingers crossed.

And I finish typing this listening to music from the iPod I synced music to without iTunes.  Hallelujah!

Monday, March 16, 2015

Paint Reproduction

Well, here we go again.  It's all about that base.  (Painter time!)  As an FYI, for the uninformed, here are the criteria for reproducing a paint color if there is transparency involved.

  • Air pressure and the nozzle size - these variables control how much paint and how quickly it's thrown onto whatever you are painting
  • Viscosity of the paint - viscosity is how "thick" the paint is - it's a result of how much paint thinner you are using, and if you get it too thick, you get blobs of paint, which is BAD, but not enough and you don't get any coverage
  • Primer - if you are using the candy paints or tri-coat systems, your paint is going to be transparent, and in that case, the color of the primer underneath it all has a direct impact on the resulting look
  • Base Color - when you buy the paint, you must be aware that the brand of the paint is critical - if it's not the same, the base coat is going to be a different color, resulting in a different finish
  • Top and Clear Coats - you should probably be aware that "clear" coats are not always "clear" - they can come with color tints, which do effect the end look, and a top coat is designed to change the end look through tinting

With so many variables, it's hard to reproduce a paint color without knowing a few variables.

So, when I heard back that the new painter couldn't reproduce the paint color, that was some bad news.  He couldn't make the color work right.

Let me translate that.

I have to take the headlight units back to the original painter.  He hasn't taken my phone calls, yet.  I could be doing this on my own, and it could be an expensive learning curve.  Here's hoping.

Saturday, February 7, 2015

SSH Over HTTPS While Serving HTTPS WebSite

Hey, folks! I use this blog also as a placeholder for little tidbits of info I find out on the net.  I stumbled across the following information for setting up an HTTPS proxy using Apache that allows a connection to a second port (e.g. for an SSH connection), while still allowing Apache to serve HTTPS requests on the same port  :

http://blog.chmd.fr/ssh-over-ssl-a-quick-and-minimal-config.html

Since most who visit here are already familiar with Apache's HTTPD server, I won't go into all the gory details.  If there is an unanswered question, visit the above link.

First, make sure you have the proxy module loaded!  This is a must, or you will receive errors when starting.  Next, open your SSL configuration that you want to allow the proxy on, and add the following :
    
    ProxyRequests On
    AllowConnect 139
    <Proxy *>
        Order deny,allow
        Deny from all
    </Proxy>
    <Proxy 127.0.0.1>
        Order deny,allow
        Allow from all
    </Proxy>
    
This essentially allows the proxy headers to tell Apache what you want to connect to, but limits it to only the localhost connection on port 139.  All other proxy requests (unless you've added more) will be denied.  Make sure you test it.  If it's failing to fire up for you, try doing it over the unencrypted (HTTP) connections instead (you will have to change the Apache configs for that), and watch what it is doing.

For the client side, you can connect to the proxy tunnel by installing the proxytunnel package, then using the command :
    proxytunnel -E -p example.com:443 -d 127.0.0.1:139 -q
    
If you are having problems connecting to the tunnel, change the -q to a -v (quiet to verbose), and try it again. If you are not doing Samba access, but sending it to SSH, you can connect to the tunnel, add the following stanza to your $HOME/.ssh/config file :
    Host example.com
        ProxyCommand proxytunnel -q -E -p example.com:443 -d 127.0.0.1:139
        DynamicForward 1080
        ServerAliveInterval 60
    
This should allow you to run the ssh command where it sets up the connection for you.  Try it out!  Again, I'm not the expert here, I simply pilfered this information from http://blog.chmd.fr/ssh-over-ssl-a-quick-and-minimal-config.html (and there is much, much more available from that link!

Friday, January 2, 2015

Sometimes I Miss My Colleagues

When I left my old company, the one thing I knew I would miss were my colleagues.  They were the creme of the crop - and not just because they knew a little bash.  They were smart, and they weren't jerks about it (probably unlike me).

One of the big things was that they liked to cause others to question their mental stability through various pranks.

Yeah, I really miss that.

However, along the new team, the same kinds of camaraderie exists, albeit one or two don't want to play that way.  We're in a cube farm at the new place.  I really didn't like that at first, because I couldn't turn around and ask a colleague a question.  But then I finally found a use for the cube farm :





Yeah, that's where the entrance to someones cubicle USED to be.  Gonna be tough to find their way in.  I really do miss those guys.