KoblentsBlog Photography
Contact About
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 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 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.
 
Published Oct 17, 2016
I had a bit of trouble finding the autocross event held at the Marina Airport for the BMW club (who are inclusive of other cars, which is why I went) - they didn't have signs up. Hopefully this map helps others. The entrance is right before (to the south-west) of the hangar area, to the right off Imjin Rd, just past Anzu Corp. The entrance is a bit steep; if you have a low car, go slow and at an angle.
3180 Imjin Rd
 
Published Sep 2, 2016
Had a problem recently: on a mac,
pbcopy
and
pbpaste
weren't transferring data to/from the GUI Command-C and Command-P (copy and paste).
After much consternation, the correct solution ended up being a system reboot. Problem solved. No, killing pboard didn't help.
 
Published Jul 13, 2016
I often search for something, then want to edit the files where it's found. Here's a nice function I stuck in my bashrc to do just that.
12345
grepvim() {
	if [ -z $1 ]; then echo "Must supply search string."; return 1; fi
	if [ -z $2 ]; then echo "Must supply search file(s)."; return 1; fi
	vim $(grep $1 ${@:2} | sed -e "s/:.*$//" | sort -u)
}
Use:
1
grepvim search file1 [file2, wildcard, etc...]
 
 
Archive: March 2016 »
© Copyright Koblents.com, 2012-2017