KoblentsBlog Photography
Contact About
Dust Trails
(1000px) (full)
Dust Trails Above Dunes
Moonlit Telescope
(1000px) (full)
Small Telescope At Lick Observatory

Published Mar 31, 2017
Had to remove one of my headlights to fix it - it had the brass gear fix, but the bracket retaining the headlight motor gear cover was improperly installed, so it had broken loose. It was jittery while driving, didn't always go up or down all the way, allowed excessive side-to-side play, and was no longer waterproof...
Anyways, this process is fairly well documented on the corvette forum, and the other GM cars of that generation with popup headlights are fixed in much the same way.
There's only one thing missing: the wiring harness for the headlights and the headlight motor is clipped to the car, and it may seem impossible to take it off. That's because underneath, there is a clip, and it looks like this:
To take it off, you can either slide it forward - but mine was stuck, so I had to take the entire clip out. You'll need relatively thin, long needle-nose pliers, in order to push in the sides of the clip as you pull. Someone once posted this image, but it was a dead link, so hopefully it'll be helpful for you.
Key words for google: 1997-2004 (97-04) C5 corvette headlight motor wiring harness stuck or won't come out due to headlight harness retainer clip.
 
Published Mar 2, 2017
Neat article I found. I'm used to doing circuit board stuff; underhood wiring is new to me, so this was a big help.
 
Published Feb 28, 2017
Handy little script to concatenate video files. Probably wouldn't recommend it with dissimilar files, though.
123456789101112
#!/bin/bash

if [[ -z $1 || -z $2 ]]; then
        echo "Must supply at least two arguments.";
        return 1;
fi

ext=`echo $1 | sed -e "s/.*\.//"`;

ffmpeg -f concat -safe 0 \
       -i <(for f in "$@"; do echo "file '$PWD/$f'"; done) \
       -c copy output.$ext
 
Published Feb 26, 2017
Had an annoying bug that didn't seem to show up on google... so maybe this will resolve some issues.
I have a makefile where a build is attempted, but because the build tool is buggy, sometimes it fails for no reason. So I invoke it with a timeout, then test to see if it errored out, and if so I rerun the build. The error code in bash is $?; but inside of a makefile the $ needs to be escaped, so I write
if [ $$? -ne 0]; then
.
However, if you need to stick this into a makefile #define block, you need to escape the escaped $. If you don't, you'll get this error: -ne: unary operator expected. So you'll have to do this:
if [ $$$$? -ne 0 ]; then
in order to escape things properly.
 
Published Feb 21, 2017
I had an issue where a video file had embedded (soft) subtitles with an error, and I wanted to edit the subtitles. Since it's just a stream in the file, it's really easy - at least for an mkv container.
All you need to do is extract the subtitles, edit them in your editor of choice, then add the stream back in. Previously, I removed the subtitle stream from the file entirely then added the edited one back; the updated version simply uses the video and audio from the original file, and the subtitles from the edited srt file, to make the new video output.
123
ffmpeg -i <video.mkv> -an -vn -map 0:2 -c:s:0 srt <sub.srt>
vi <sub.srt>
ffmpeg -i <video.mkv> -i sub.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s copy <video_output.mkv>
 
Published Jan 30, 2017
"Release 5.1 is a disappointment. Performance for common operations has dropped 40% from 4.0.5, we shipped with 500 priority 1 and 2 bugs, and a base Indy is much more sluggish than a Macintosh. Disk space requirements have increased dramatically.
The primary cause is that we attempted far too much in too little time. Management would not cut features early, so we were forced to make massive cuts in the final weeks of the release.
What shall we do now? Let's not look for scapegoats, but learn from our mistakes and do better next time."
 
Published Jan 27, 2017
This document is a collection of facts about ASCII and related technologies, notably hardware terminals and RS-232 and modems. This is lore that was at one time near-universal and is no longer. Itís not likely to be directly useful today - until you trip over some piece of still-functioning technology where itís relevant (like a GPS puck), or it makes sense of some old-fart war story. Even so, itís good to know anyway, for cultural-literacy reasons.
 
Published Jan 10, 2017
Looks like the backdoor roth will still be good for 2017.
If you're above the roth contribution income limits, it works like this:
1. Contribute to Traditional IRA
2. Convert (not recharacterize) to Roth IRA.
 
 
Archive: December 2016 »
© Copyright Koblents.com, 2012-2017