Monthly Archives: June 2009

Adding static page to WordPress

clipped from geekycoder.wordpress.com Difference between Page and Post Before explaining the difference, it might be useful to understand what blog means to many people. In common term, a blog is merely a site to store a chronological timeline of entry/article submitted (I like to use article rather than Post, because Post is more verb than noun eg Post entry/article means submit entry/article) and that what make a blog site different from a website. And it is exactly this common definition of blog that the Page feature is underused or even ignored. Support for Internal and External Page Thankfully, WordPress includes support for both external page and internal page. So what is the difference between them ? The external page is actually a Page in a external website that is referenced explicitly using its URL (eg. http://geekycoder.byethost13.com/geezer.html) and is not stored as part of WordPress repository.

Posted in Web Development | Tagged | Leave a comment

Evolution of Technology over the years – video

Communication Evolution @ Yahoo! Video

Posted in Tech Tips | Leave a comment

Petra Haden sings “Let your love flow” – Prius Commercial

Who sings the song on the toyota prius commerical? The new 2010 Toyota Prius commercial “Harmony” is part of the “Harmony Between Man, Nature and Machine” campaign. See the commercials: The “Harmony” commercial on YouTube The making of the “Harmony” commercial The artist is Petra Haden, performing the song “Let Your Love Flow.” She does it a cappella! http://www.petrahadenmusic.com/ http://www.myspace.com/petrahaden Not sure if the new  “MPG” commercial, but it certainly sounds like the same artist to me! Background of the Commercial: Prius- You thought it was just animation -It’s all from somewhere else I also did a post with the link to DOWNLOAD THIS SONG.

Posted in Marketing | Tagged , , | 1 Comment

Download “Let your Love flow” by Petra Haden (free mp3 from Toyota)

Download the mp3: Song from the Prius “Harmony” commercial available for free download here . Try this link instead. Much thanks, Casey. Info: Petra Haden hit pay dirt with the release of Petra Haden Sings: The Who Sell Out in 2005. An a cappella remake of the Who’s classic 1967 homage to pirate radio in England, Haden re-created not only the vocals of Roger Daltrey, but the harmonies of Pete Townshend and John Entwistle, as well as the guitars, drums, and bass of the volatile British band. In a commercial for the 2010 Toyota Prius, Petra Haden performs her version of the 1970s hit “Let Your Love Flow.” Hear Petra in the commercial at toyota.com. She has just finished recording her next solo record, which will be out next year. Lyrics here Watch the commercials

Posted in Marketing | Tagged , , | 8 Comments

Let your love flow – lyrics

Bellamy Brothers Let Your Love Flow lyrics Songwriters: Williams, Larry E There’s a reason for the sunshine sky’s There’s a reason why I’m feeling so high Must be the season when that love light shines all around us So let that feeling grab you deep inside And send you reeling where your love can’t hide And then go stealing through the moonlit night with your lover Just let your love flow like a mountain stream And let your love grow with the smallest of dreams And let your love show and you’ll know what I mean it’s the season Let your love fly like a bird on a wing And let your love bind you to all living things And let your love shine and you’ll know what I mean that’s the reason There’s a reason for the warm sweet nights And there’s a reason for the candle lights Must be the season when those love lights shine all around us So let that wonder take you into space And lay you under it’s loving embrace Just feel the thunder as it warms your face you can’t hold back Just let your love flow like a mountain stream And let your love grow with the smallest of dreams And let your love show and you’ll know what I mean it’s the season Let your love fly like a bird on a wing And let your love bind you to all living things And let your love shine and you’ll know … Continue reading

Posted in Marketing | Tagged , , | 1 Comment

Intuitive intro page – flash or html

This is a very cool intro-page for a site, to give users the option of choosing between html and flash. I prefer html sites but clicking on that little beef patty just seems so wrong when it’s presented like this! :) Visit station.ch to see this in action

Posted in Design | Tagged | Leave a comment

How to build you own slideshow using flash

clipped from www.istockphoto.com Design projects created in Adobe Flash® and output in the SWF file format are a new and emerging medium for stock distribution. iStockphoto needs more Flash content, and creating artwork in the SWF format offers another (far-less-crowded and competitive) outlet in which to sell and distribute your creative wares. Anyone who is engaged in creating digital media – be it photography, vector art, animation, motion graphics, video, or sound – should familiarize themselves with Flash creation and output. Unlike Photoshop or Illustrator, Flash is an umbrella technology that allows the user to include whatever elements they can think of, such as photographic images, vector artwork, movies, sounds, and interactive scripting. I see a few different types of Flash content on iStockphoto that fall into distinct categories: image slide shows, vector animation, menu systems, and customizable content that can be data driven by XML. Full article here

Posted in Design, Web Development | Tagged | Leave a comment

WordPress Help for Hansel

Just helped set up the http://hanselcreative.com/ wordpress blog.

Posted in Web Development | Tagged | Leave a comment

Installing MCImageManager on Drupal 6.12

This is a quick note on how to install MCImageManager on Drupal 6.xx in combination with TinyMCE and WYSIWYG API editor. My directory structure is as follows: sites\all\modules\wysiwyg\tinymce\jscripts\tiny_mce\plugins\imagemanager So, looking at that structure, you can see that the WYSIWYG API extension needs to be inside the modules folder. TinyMCE needs to be inside of that. And way down the line, the MCImageManager needs to be inside the plugins folder. Next, you need to edit this file: sites\all\modules\wysiwyg\editors\tinymce.inc I added the code that is in bold: ‘advimage’ => array( ‘path’ => $editor['library path'] .’/plugins/advimage’, ‘extensions’ => array(‘advimage’ => t(‘Advanced image’)), ‘extended_valid_elements’ => array(‘img[src|alt|title|align|width|height|hspace|vspace|border|style|class|onmouseover|onmouseout|id|name]‘), ‘url’ => ‘http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage’, ‘internal’ => TRUE, ‘load’ => TRUE, ), ‘imagemanager’ => array( ‘path’ => $editor['library path'] .’/plugins/imagemanager’, ‘buttons’ => array(‘insertimage’ => t(‘Image Manager’)), ‘extended_valid_elements’ => array(‘img[src|alt|title|align|width|height|hspace|vspace|border|style|class|onmouseover|onmouseout|id|name]‘), ‘url’ => ”, ‘internal’ => TRUE, ‘load’ => TRUE, ), ‘advlink’ => array( ‘path’ => $editor['library path'] .’/plugins/advlink’, ‘extensions’ => array(‘advlink’ => t(‘Advanced link’)), ‘extended_valid_elements’ => array(‘a[name|href|target|title|class|onfocus|onblur|onclick|ondlbclick|onmousedown|onmouseup|onmouseover|onmouseout|onkeypress|onkeydown|onkeyup|id|style|rel]‘), ‘url’ => ‘http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink’, ‘internal’ => TRUE, ‘load’ => TRUE, ), then go into the wysiwyg api control panel in drupal, choose your input format -> Buttons and plugins and you will have an option to enable image manager. you will still need to edit the config.php inside the image manager folder to set the authentication. See this page for more details. Basically you will need to make these changes: $mcImageManagerConfig['authenticator'] = “ExternalAuthenticator”; $mcImageManagerConfig['ExternalAuthenticator.secret_key'] = “thisismysecretkey”; $mcImageManagerConfig['ExternalAuthenticator.external_auth_url'] = “/drupal_6_2/auth_drupal.php”; You will also need to copy the sites\all\modules \wysiwyg\tinymce\jscripts\tiny_mce \plugins\imagemanager\plugins\ExternalAuthenticator \auth_drupal.php file to the site’s doc … Continue reading

Posted in Web Development | Tagged , , | 3 Comments

Using json_encode() and json_decode() in PHP4

I use json_encode() a lot for AJAX calls. Teamed with jQuery’s $.getJSON(), it’s too convenient not to use. Unfortunately, json_encode() doesn’t come standard until PHP 5.2. To add insult to injury, many current *nix distros don’t include PHP 5.2 in their official repositories yet. So, if you’re using PHP4 download JSON’s json_encode and json_decode for PHP4 (which automatically degrade for PHP5, thus not breaking your app during an upgrade) here: http://mike.teczno.com/JSON/JSON.phps json_encode() example 1 <?php include("JSON.php"); $a = json_encode( array( ‘a’=>1, ’2′=>2, ‘c’=>’I <3 JSON’ ) ); echo $a; // Outputs: {"a":1,"b":2,"c":"I <3 JSON"} $b = json_decode( $a ); echo "$b->a, $b->b, $b->c"; // Outputs: 1, 2, I <3 JSON json_encode() / json_decode() example 2 In Javascript, consuming input in JSON format is as easy as: eval(“var decoded_data = ” + encoded_data); With JSON-PHP, it can be almost as easy on the server-side, too: // create a new instance of Services_JSON require_once(‘JSON.php’); $json = new Services_JSON(); // convert a complex value to JSON notation $value = array(1, 2, ‘foo’); $output = $json->encode($value); print($output); // accept incoming POST data $input = $GLOBALS['HTTP_RAW_POST_DATA']; $value = $json->decode($input); Using json_encode() and json_decode() in PHP4 with Arrays You can use json_encode() with arrays or multi-dimensional arrays. When you are ready to output it as json, just call echo json_encode($yourArray); You can also use this method with jQuery’s $.ajax call, and specify the data type as JSON, although jQuery will automatically try and detect the data type, so that may not even be necessary. source: mike.teczno

Posted in Web Development | Tagged , , | 6 Comments