Mountain Lion, Git “Command Not Found” (2 min fix)

I found this while trying to figure out why I’m getting the error.

1. open your ~/.bash_profile,

if you use textmate it would be :
$ sudo mate ~/.bash_profile

2. add this line to the file:
export PATH=$PATH:/usr/local/git/bin/

3. Save & close the file and type on the terminal:
$ source ~/.bash_profile

*All* the credits go to these guys:

http://www.hongkiat.com/blog/mountain-lion-git-fix/
http://stackoverflow.com/questions/6810059/git-on-mac-os-x-lion

How to add a subtask in Asana:

 

 

 

The project management system that I love and use for every project has just got added a much requested feature. Now you can create sub tasks inside existing tasks to break them them up even further. The nice thing about this is that subtasks are full tasks that can be assigned to a team member and receive comments.

Image

How to create a Sub Task In ASANA:

There are two ways to do this.

1. Click on the Subtask Icon next to the due date

2.  Click the downwards arrow above the tasks name and select  “Add Subtask”

You can find out more about this on the official  Asana: blog http://blog.asana.com/2012/10/introducing-asana-subtasks/

Enjoy!

WordPress 3.5 Almost ready

WordPress updates aims to move the whole community forward. That is why I’m delighted to see the progress being made towards the final 3.5 release.

What’s new?

  • Appearance: changes, retina support .
  • Accessibility: Improvements to keyboard shortcuts and screen reader support.
  • Plugins:  One of my favorites is that you can browse and install plugins you’ve marked as favorites on WordPress.org.
  • Mobile: No more configuration when connecting to your WordPress blog from your mobile phone as XML-RPC is enabled by default in 3.5 .
  • Links: Remember those lins to the left? Well forget them, they’ve been removed and placed in a plugin should you still need them on your website.
  • Default Theme: A brand new default theme called “2012”.

With these changes and a few more on the way I can’t wait to hit the upgrade button.

Add/Enqueue Scripts or Styles for pages where my plugin short code is found

So you have the neat plugin and you’re really excited about getting it done, but you don’t want this wonderful plugin loading un necessary scripts and styles for every page.

This tutorial assumes that your plugin contains the short code already, if not go here.

See the code bellow:


function my_scripts_method() {

global $post; // get the current post

if ( !empty($post) ){
 // check the post content for the short code
 if ( stripos($post->post_content, '[fbalbumsync')!==FALSE ){
 // we have found a post with the short code
 wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
 wp_enqueue_script( 'jquery' );
 // $url contains the path to your plugin folder
 $url = plugin_dir_url( __FILE__ );
 wp_enqueue_style( 'myplugin_style',$url.'1140.css' );
 wp_enqueue_script('my_plugin_js',$url.'plugin.js' );
 }
 }
}
// add scripts to wordpress front end with this hook
add_action('wp_enqueue_scripts', 'my_scripts_method');

I hope this helps you better your plugin.