Archive for the ‘BlogTorials’ Category

03 May 09 _ How to flip text upside-down on Twitter

Here’s a little trick I just saw on Twitter that will let you tweet upside down. All you do is go to this website and enter the text that you want to flip and reverse:

http://www.revfad.com/flip.html

¡ǝldɯıs ʇɐɥʇ s,ʇı
It’s that simple!

Follow us on Twitter: @AWPNY

21 Mar 09 _ How to change the default server time on GoDaddy (linux)

I found this easy solution for changing GoDaddy’s default server time so my PHP 4 scripts would display the proper dates and times when fetching and displaying an RSS feed with Simplepie. Just add this code to your script before you include the “simplepie.inc” file (or before you begin to calculate dates or times on the page):

<?php
//set timezone
putenv ('TZ=America/New_York');
mktime(0,0,0,1,1,1970);
?>

Just replace America/New_York with whatever your local time zone is. Check this page for valid entries: http://us.php.net/manual/en/timezones.america.php

For PHP5.1 or newer use date_default_time(’America/New_York’).

Also check this page in the Simplepie docs for reference.

Cheers!

09 Mar 09 _ How to get CakePHP to work in a subdirectory

I recently had trouble getting CakePHP running properly in a subdirectory on the Mosso cloud. The main site URL is http://thinkandthrive.com, and the Cake app lives in a folder off the site root called “tw”. So I was able to connect to http://thinkandthrive.com/tw/, but not to http://thinkandthrive.com/tw (without the trailing slash).

The fix to get Cake working in the subdirectory was to add a single line to the .htaccess file in the Cake root directory ( the “/tw” folder in my case). The .htaccess file should look something like this:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule    ^$ app/webroot/    [L]
RewriteRule    (.*) app/webroot/$1 [L]

Add this line after “RewriteEngine on”:

RewriteRule /YOURCAKESUBDIR$ /YOURCAKESUBDIR/ [L]

Obviously, replace “YOURCAKESUBDIR” with the subdirectory your Cake app in running in. So my .htaccess file now looks like this:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /tw/
RewriteRule /tw$ /tw/ [L]
RewriteRule    ^$ app/webroot/    [L]
RewriteRule    (.*) app/webroot/$1 [L]

(The third line, “RewriteBase /tw/”, is necessary to get CakePHP working in the Mosso hosting environment. If your Cake installation is at the server web root (the Mosso “content” directory) then it should read simply “RewriteBase /”. If your site is not hosted at Mosso just eliminate this line.)

Thanks to Jeff Loiselle for the quick fix: http://jeff.loiselles.com/wordpress/?p=22

13 Nov 08 _ Real Life Tutorial: Removing Cream Cheese From Apple’s Tiny Keyboard

No Cream Cheese

We love our tiny, shiny Apple Keyboards (aside from the ridiculous USB placement/depth). We also love eating lunch at our desks. Today happened to be one of those days where lunch somehow ended up on my glorious keyboard. It could have been worse (soup). It could have been better (soft dinner rolls). But it was a bagel with cream cheese. Face down.

It wasn’t pretty, and rather than taking photos of the incident (depressing and poorly lit) I’ll walk you through how to remove a slightly messy substance from a slightly ridiculous keyboard. (more…)

20 Oct 08 _ WordPress Permalink Redirect (Archive 404)

After upgrading our AWP Blog to WordPress to 2.6 (we are eagerly awaiting the 2.7 visual transformation, by the way), we noticed in the shuffle our Permalinks got messed up. For example, searching for my post div align top center, which is #1 right now, Google gives us blog.awpny.com/archives/206 (not a permalink). Following that URL used to get us to our 404 Error page. Whoops! Not so great for SEO ratings, not to mention reader frustration!

WordPress doesn’t automatically redirect your old permalinks to the new permalinks, unfortunately. The permalink for the above post is http://blog.awpny.com/2008/03/position-a-div-element-absolute-and-align-it-top-center/. I did a little research. More than a few people have been frustrated with this problem, as you can imagine. I discovered this plugin Permalink Redirect WordPress Plugin. It works perfectly! Thank you Scott Yang’s Playground.

Simply download & install the plugin. Edit the plugin settings (under Settings>Permalink Redirect). For our blog, in the ‘Path pairs to redirect from and to’ box, I used:

[from] /archives/%post_id% [to] /%year%/%monthnum%/%postname%/

And now, Google search results take me to the post, rather than a 404 Error page!

  • guitar modification parts
  • butcher paper roll dispenser
  • makers of dog kennels
  • credit card debt relief program
  • billet grills
  • studio rta the bug computer desk
  • shark cordless cyclonic hand vacuum
  • toastmaster parts toaster
  • men's suits shirts barney
  • saucony shoes outlet stores
  • 1 2 decorative square post caps
  • fruit of the loom union suits
  • maine snowmobile insurance requirements
  • boyne mountain grand lodge and spa
  • triple pet natural toothpaste
  • used kids dirt bikes for sale
  • 30 inch slide in electric range
  • create pdf word embed fonts
  • wholesale jelly jars
  • water as fuel denny klein
  • couch replacement pillows
  • coleman bayside elite replacement parts
  • sponge bob crabby patty candy
  • wholesale winter gloves hats
  • best at home treatment for blackheads
  • tub refinishing pgh pa
  • tile shower seat vintage
  • caught wearing high heels split skirt
  • kawasaki kx85 parts and exploded view
  • india and business dress
  • kid's camp crafts
  • cuff bracelets wholesale
  • golf gps systems reviews
  • wholesale patio pool furniture
  • crystal on the plaza
  • global travel shoes
  • spectrum products tanning bed
  • 84 wide wooden window blinds
  • consigning my lilly pulitzer clothes
  • no smoking rooms in boston hotels
  • aubrey organics skin cleanser
  • home decor liquidators furniture and flooring
  • hair regrowth products reviews
  • black bean corn citrus vinegar
  • jt paintball gear
  • how to create finger nail designs
  • popup tent cleaning
  • knife sound editing
  • hippie chick costumes
  • miniature surveillance cameras detection
  • hd high def video edit
  • recycle styrofoam cups
  • bamboo patio door blinds
  • money order promise rings
  • resurfacing bathtubs
  • mens star earrings
  • spray face foundation
  • remote home thermostats
  • phoenix skin rejuvenation
  • shower enclosures walls
  • kawasaki 440 aircraft engine parts
  • women's clothing sleep shirts
  • material requirements planning mrp systems
  • cryoserver back email compliance archiving message
  • home flea infestation
  • cuisinart 9-speed hand mixer brushed chrome
  • wholesale military surgical caps
  • nike drawstring backpack lavender
  • acutane colon problems
  • mercedes 320 wagon tires
  • ucla womens basketball camps
  • vida international fruta
  • kids camp crafts
  • compliance corporate email
  • good feet store onalaska wi
  • coach purse party
  • women's shoulder handbags
  • diy exterior patio blinds
  • pivot tub shower enclosures
  • dog harness and collar
  • shoi racing helmets
  • free shawl knit patterns
  • thyme essential oil price
  • tubeless bicycle wheels road
  • black edition magazine man swimsuit
  • 5 star car wax
  • italian charm bracelets wholesale
  • sleep t shirts
  • audio cards upside down
  • dell 5100cn colour network laser printer
  • fj cruiser trailer hitch receivers
  • sell structured settlement payment
  • organizational monitor stands
  • prom decorations and costumes
  • cats on behavior medication
  • golf palm computer gps system
  • budget wedding planning checklist
  • movie theater popcorn maker canada
  • water pump 3-inch suction hose
  • invest in stocks cheap
  • nike max air inline skates
  • star wars galactic heroes bedding comforter
  • airsoft outfitters gear
  • cheap new chevy trucks
  • discounted airfares cheapest airfares erfurt
  • floral furniture throws
  • schutt baseball equipment
  • acrobat distiller settings for news print
  • 2.4 to 3.8 s10 truck conversion
  • westgate villia resorts
  • fuzzy bunny slippers adult
  • shock doctor mouth pieces
  • midwest family vacations
  • red kap highland uniform shirts
  • play euchre free online
  • rockport shoes rosemont
  • elo entuitive touchscreen drivers
  • decorative garden pond fountains
  • kids online cake decorating games
  • america west airlines dividend miles program
  • in kind giving from popcorn company
  • camera ccd industrial
  • outdoor furniture pool harrows
  • raymond waites spring garland
  • lil boosie new mixtapes
  • household and cleaning forum
  • video piggy 1.3.0 crack