301 Redirect Using PHP & BASH For Static Content Migration

Here is a handy BASH Script for redirecting static content to a new location

Example: redirect foo.html bar.html

This will make foo.html redirect to bar.html and save the old foo.html as foo.html_

#!/usr/local/bin/bash
SOURCE=$1
DEST=$2
OLDSUFFIX="_"
echo "Source: $SOURCE  Dest: $DEST"
if ([ -z $SOURCE ] || [ -z $DEST ]); then {
        echo "usage:  php_redirect [SOURCE] [DEST]";
        echo "Old file will be saved as [SOURCE]$OLDSUFFIX";
}
else {  
        if [ ! -f $SOURCE ]; then
                echo "Source: \"$SOURCE\" does not exist"
        else {  
                mv $SOURCE $SOURCE$OLDSUFFIX
                echo "<?php header(\"Location: $DEST\");" > $SOURCE;
                echo "Success!  $SOURCE is saved as $SOURCE$OLDSUFFIX, $SOURCE is redirected to $DEST";
        }
        fi
}
fi

OS X Lion Reviewed By A Windows User

I’ve been using Microsoft Windows since version 3.1, which came out in 1992.  I’ve seen it triumph:  2000, XP & 7 were all very strong releases.  I’ve seen it struggle:  ME & Vista were lackluster.  Nineteen years of mastering every single quirk and intricacy which has driven many users away from the platform.

About a month ago I began using Mac OS X Lion as my primary Desktop OS.  I’ll have to say that overall, Lion is fantastic.  There are few aspects that windows can say it does better, but they definitely exist.  This review talks more about what Lion doesn’t do as well as windows. Continue reading OS X Lion Reviewed By A Windows User

Why Twitter is Not Good At Updating Facebook – Facebook Discriminates Against Apps

Lets examine a typical Twitter post as imported by FB’s Twitter app:

It Just Looks Awful

The update riddled with twitter lingo like RT (retweet), @mentions, and #hashtags.   Twitter lingo confuses Facebook-only users, and the twitter components that should be turned into links, aren’t.  This is a violation of the Twitter Display Guidelines but you probably won’t see Twitter revoking Facebook’s API key because it’s such an enormous source of referring traffic. Continue reading Why Twitter is Not Good At Updating Facebook – Facebook Discriminates Against Apps

Activity on Google Wave Reported Via GMail! Reporting This On Google+

Today I got an e-mail from Google Wave, one of my waves had been updated! Excitedly, I jumped over to wave.google.com, only to find that it was yet another “null post”:

This was one of the curious “features” of Google Wave.   Continue reading Activity on Google Wave Reported Via GMail! Reporting This On Google+

Beware Of Video Players On Untrusted Sites You’ve Clicked Through To From Facebook

I’ve seen the link “Yeahh!! It happens on Live Television!!!” liked by four of my facebook friends today.  I think it’s worth warning people not to click inside of web pages pages on an untrusted site that thas a video player within it.

Here is the example of an offending video post:

Characteristics: usually something tantalizing and sexual.  This one has been particularly bad. Apparently everybody loves a good nip slip, from fundamentalist Christians, to moms, to technology experts.

Once you click to go to the link, the damage hasn’t yet been done.  Usually there will be a video player with a big play button on it.  Clicking on the button usually won’t work, at least at first.
Continue reading Beware Of Video Players On Untrusted Sites You’ve Clicked Through To From Facebook

A Desirable Use Case: Postless Blogs For Retainable Microblogging

The problem is that Twitter doesn’t retain more than 2500 of your last tweets. This that old information un-indexable by search engines, un-searchable by Twitter’s own search engine, and essentially irretrievable unless somebody retained a link or has archived the tweet. In the case where you might want to say something that is more persistent, a new method is necessary.

The second problem is that Blogs such as WordPress have post pages that usually contain some sort of information about the site being referenced. Posting a Blog that is simply a link to another site is pretty bland without some sort of summary or excerpt from the hyperlink being pointed to. I really don’t want to make my reader load that extra page, or force them to read some lame summary when I’m just trying to share a link I already summarized in the title. Continue reading A Desirable Use Case: Postless Blogs For Retainable Microblogging