Twitter Post Updates to your Facebook-ness

So after you login to your Facebook profile, if you click on the “Applications” tab in the bottom left corner of the screen on the bottom control bar, you see this page full of applications. Although none of them are flesh-eating reptiles, you can find a way to add your Titter updates to your Facebook shizzle. If you are still reading this, you may understand…

  • Facebook -> Applications -> Browse Applications
  • At the “Search Applications” field at the top right, enter “Twitter”
  • Add the top result application entitled “Twitter”
  • Add it, give your Twitter login, allow to access your profile, add the box, etc. money, to the from world is full of champagne and bacon.
  • Congrats, you survived.


Image Gallery Revamped

The image gallery has been revamped to fit into the new iframe structure of our version 3 site. To check it out, click on the “Archives” link, then “image” link in the sidebar nav.

The animations utilize the Javascript Motion Tween classes written by Philippe Maegerman from Brussels, Belgium. Thanks, Pim!

Links

jstween.blogspot.com

Some Good WordPress Hacks

Impact sent us a link to this article about some useful WordPress hacks:
http://www.smashingmagazine.com/2009/04/15/10-exceptional-wordpress-hacks/

The ninth entry, “Highlight Searched Text In Search Results” is a tiny code snippet god-send if you are regular expression illiterate like us:

<?php
$content = nl2br ( strip_tags ( get_the_content ( __( 'more…' ) ) ) );
$keys = explode ( " ", $s );
$content = preg_replace ( "/(" . implode ( "|", $keys ) . ")/iu",

'<strong class="search-excerpt">\0</strong>',
$content);

?>

Works like a champ!

There is also another helpful trick in this article. Up at number four, “Create A Maintenance Page For Your WordPress Blog”. This one is an .htaccess modification to keep visitors from seeing your site while you are making updates…

RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123
RewriteRule $ /maintenance.html [R=302,L]

Replace the IP Address with yours and you’ll be able to see your pages but everyone else will get redirected to the maintenance.html page. Brilliant!

Callback Format for FuseKit

clip.slideTo ( x_value, y_value, duration, easing, delay, callback );

Where callback is structure as follows:

clip.slideTo ( […], { scope:this, func:”function_name”, args:argvalue } );

To send multiple args values, send as an array

MixBlendr

A new Java-based application for mixing audio tracks right in your web browser has just launched. MixBlendr is open source and available for download to use on your own website. Right now they have a contest running until April 9, 2009 for best mix of the tracks they posted on their site.

Check it out: mixblendr.com

WordPress Migration with MySQL

We need to move a WordPress 2.7 install from a development domain to the live environment via straight FTP transfer and phpMyAdmin dump. We bypass the Export / Import functions in WordPress admin so that we can preserve our myriad plugin settings when making the domain switch. But now our links are all pointing at the old URL and the upload path is all wonky. WTF? Fear not, you can fix all those problems by running this tasty little SQL script on your WordPress database via phpMyAdmin (don’t forget to replace the values with the appropriate values for your environment):

## — replace absolute URLs that point to the old domain
UPDATE wp_posts

SET guid = REPLACE ( guid, ‘www.oldsite.com’, ‘www.newsite.com’ )
WHERE guid LIKE ‘%www.oldsite.com%’
;

UPDATE wp_posts

SET post_content = REPLACE ( post_content, ‘www.oldsite.com’, ‘www.newsite.com’ )
WHERE post_content LIKE ‘%www.oldsite.com%’
;

UPDATE wp_options

SET option_value = REPLACE ( option_value, ‘www.oldsite.com’, ‘www.newsite.com’ )
WHERE option_value LIKE ‘%www.oldsite.com%’
;

## — replace absolute server paths
UPDATE wp_options

SET option_value = REPLACE ( option_value, ‘/old/server/path/’, ‘/new/server/path/’ )
WHERE option_value LIKE ‘%/old/server/path/%’
;

UPDATE wp_postmeta

SET meta_value = REPLACE ( meta_value, ‘/old/server/path/’, ‘/new/server/path/’ )
WHERE meta_value LIKE ‘%/old/server/path/%’
;

SMS Stats

SMS text messaging is the most widely used data application on the planet, with 2.4 billion active users, or 74% of all mobile phone subscribers sending and receiving text messages on their phones.

en.wikipedia.org 2009.01