2009
11.04

Handy Date Function

Simple little util to determine date:

date --date='60 day ago'

2009
11.03

Covnert CBR to CBZ format for iComic

I had my own little script to convert cbr to cbz based loosely on a cbr2cbz script I found in a forum.
Since my method was nasty, I figured I’d go back and tweak the original to work in my environment.
I had to fix the for loop as well as a cp command.
Pretty minor and I’ve got a nice little script to convert my comics to a readable format in iComic!

cbr2cbz file with +x:

#bin/bash
IFS="|"
if test -z $1; then
WORKDIR="."
else
WORKDIR="$1"
fi
echo "Working from directory $WORKDIR"
for CBRFILE in $WORKDIR/*.cbr; do
BASENAME=`basename $CBRFILE ".cbr"`
echo "$CBRFILE"
echo "$BASENAME"
DIRNAME=`dirname $CBRFILE`
NEWBASEFILE=`echo "$BASENAME" | sed "s/ /_/g"`
echo "$NEWBASEFILE"
NEWNAME="$NEWBASEFILE.cbz"
echo "$NEWNAME"
mkdir cbr2cbztemp
cd cbr2cbztemp
echo "TEST $CBRFILE"
cp "../$CBRFILE" .
unrar e "$BASENAME.cbr"
zip "$NEWNAME" *
cp "$NEWNAME" .. #"$DIRNAME"
cd ..
rm -r cbr2cbztemp
done

To get the files copied over to the phone:
scp user@IP:/private/var/mobile/Applications/E8952EDD-9544-4889-BC12-9F394F570DA1/Documents/ .

2009
11.03

Ahhh… Modern Technology

Testing a post from the iPhone! This is the orig social networking tool that I used and have neglected time and time again. I have since been using facebook and twitter more often. I should look into syncing the three services together. The new wordpress is well laid out and easy to use.

2008
11.19

Publishing ASP.NET apps with Licenses

I ran into this issue using a 3rd party control, particularly the ASPOSE.Total.net control, with a license file. In Visual Studio 2005 when you publish the web project to a production server, the lic file doesn’t copy over.

After some time reading, I come across the following solution:


< configuration >
< system.web >
< compilation >
< buildproviders >
< remove extension=".lic" >
< add extension=".lic" type="System.Web.Compilation.ForceCopyBuildProvider" >
< /buildproviders >
< /compilation >
< /system.web >
< /configuration >

I hope this helps someone out there,
~KinGBin