I just began SICP yesterday and I'm about halfway through chapter one. The problem is that, on the first set of exercises, I basically fucked half of them up(two of which I had no idea how to answer). Is this "normal"? I'm very interested in computers and programming, but I imagine someone like RMS didn't have much trouble with these problems.
Name:
Anonymous2013-07-22 21:09
How do I fix this fucking shit?
#!/bin/bash
cp OP.mkv ~/; cp ED.mkv ~/
for a in *.mkv
do ffmpeg -i "$a" -f mpegts -c copy -bsf:v h264_mp4toannexb "${a%.mkv}".mpeg.ts
done
for b in *.mpeg.ts
do ffmpeg -y -isync -i "concat:OP.mpeg.ts|$b|ED.mpeg.ts" -f matroska -c copy "${b%.mpeg.ts}".mkv
done
Now see, I would just immediately do the -isync -i "concat:things|stuff" but it doesn't seem to work with just mkv formats? Can you get it working with just mkv formats? Because converting to mpeg.ts first strips it of all subtitles, and when I convert it back into mkv mkvmerge has problems getting subs back in their due to some retarded codec error.
How would I batch convert all mkvs in a directory to append "OP.mkv" to the front of them, and "ED.mkv" to the end of them?
>>1
Yes, so don't worry. You are also getting accustomed to Scheme and functional programming, so it's normal, don't sweat it.
Name:
Anonymous2013-07-22 22:54
I know that Berkeley has among the hardest CS curriculums around and that even there SICP was considered one of their hardest courses, so much so that some believe CS61A and B were designed to weed out the weakling would-be CS prospects.