Remove Dock on Mac OS X Lion

I use Quicksilver for almost everything and really hate that the dock always seems to be getting in my way. I was looking for a way to remove it, and found the following lines of code. There are some apps, like DockKiller, which can be a little buggy, but what I’ve found is that using the following commands will (for me) make the Dock small enough and move it into a place where it doesn’t pop up, and so this solution was the one that worked best for me.

To implement this solution, open a terminal and run the following commands:

// makes the dock icon size really really small
defaults write com.apple.dock tilesize -int 1

// puts the dock on the bottom of the screen
// other values are left and right
defaults write com.apple.dock orientation -string bottom

// puts the dock on the left side
// other values are center and end
defaults write com.apple.dock pinning -string start

// restarts the dock so the changes take effect
killall Dock

Here is a screenshot of the dock – this is actual size, a crop from the bottom left corner of my screen :)

Remove Dock on Mac OS X Lion

Posted in Mac, Software, Tech Tips | Tagged , , , | 1 Comment

Mac OS X Dock Preference Settings (secrets)

Mac OS X Dock Preference Settings (secrets)###Animate launch### defaults write com.apple.dock launchanim -boolean

Expose minimizes desktop

defaults write com.apple.dock wvous-olddesktop -boolean

Prevent changes to position

defaults write com.apple.dock position-immutable -boolean

Magnification

defaults write com.apple.dock magnification -boolean

Show Expose corners

defaults write com.apple.dock wvous-showcorners -boolean

Prevent changes to min-effect preference

defaults write com.apple.dock min-effect-immutable -boolean

Ripple when placing widgets

defaults write com.apple.dock disable-ripple -boolean-neg

Screen Edge Position

defaults write com.apple.dock orientation -string left
defaults write com.apple.dock orientation -string bottom
defaults write com.apple.dock orientation -string right

Dock Appearance

defaults write com.apple.dock no-glass -float

Prevent changes to min-in-place preference

defaults write com.apple.dock min-in-place-immutable -boolean

Arrow key wraps

defaults write com.apple.dock workspaces-wrap-arrows -boolean

Dock pinning

defaults write com.apple.dock pinning -string

Bounce Applications

defaults write com.apple.dock no-bouncing -boolean-neg

Show “Quit” menu item

defaults write com.apple.dock QuitFinder -boolean

Switch spaces when using Command-Tab

defaults write com.apple.dock workspaces-auto-swoosh -boolean

Highlight the arrow of the foremost application

defaults write com.apple.dock showforeground -

wvous-float-style

defaults write com.apple.dock wvous-float-style -

Dim hidden apps

defaults write com.apple.dock showhidden -boolean

Prevent changes to Dock contents

defaults write com.apple.dock contents-immutable -boolean

Show only running applications

defaults write com.apple.dock static-only -boolean

Hot Corner: Top left

defaults write com.apple.dock wvous-tl-corner -string

Show shadow

defaults write com.apple.dock showshadow -boolean

Always show trash as empty

defaults write com.apple.dock trash-full -boolean

Prevent changes to Dock size

defaults write com.apple.dock size-immutable -boolean

Enable single application mode

defaults write com.apple.dock single-app -boolean

Hot Corner: Top right

defaults write com.apple.dock wvous-tr-corner -string

Autohide

defaults write com.apple.dock autohide -boolean

Show floating Expose button

defaults write com.apple.dock wvous-floater -boolean

Prevent changes to autohide preference

defaults write com.apple.dock autohide-immutable -boolean

minimize-128

defaults write com.apple.dock minimize-128 -

Minimize effect

defaults write com.apple.dock mineffect -string

Highlight stack items on hover

defaults write com.apple.dock mouse-over-hilte-stack -boolean

tile-inset

defaults write com.apple.dock tile-inset -integer

Show all files in Dock menus

defaults write com.apple.dock AppleShowAllFiles -boolean

Prevent changes to magnification preference

defaults write com.apple.dock magnify-immutable -boolean

Hot Corner: Bottom left

defaults write com.apple.dock wvous-bl-corner -string

Enable spring load on all Dock items

defaults write com.apple.dock enable-spring-load-actions-on-all-items -boolean

Hot Corner: Bottom right

defaults write com.apple.dock wvous-br-corner -string

Show Recent Applications as Stack

defaults write com.apple.dock persistent-others -array-add

Show favorite volumes stack

defaults write com.apple.dock persistent-others -array-add

Add Recents / Favorite Stack to Right Side

defaults write com.apple.dock persistent-others -array-add-multiple

Delay for dragging windows between spaces

defaults write com.apple.dock wordspaces-edge-display -float

Add Recents / Favorite Stack to Left Side

defaults write com.apple.dock persistent-apps -array-add-multiple

Add separator to right side

defaults write com.apple.dock persistent-others -array-add-multiple

Show Recent Documents as Stack

defaults write com.apple.dock persistent-others -array-add

Show Recent Servers as Stack

defaults write com.apple.dock persistent-others -array-add

Add separator to left side

defaults write com.apple.dock persistent-apps -array-add-multiple

Show Icons of hidden Applications semitransparent

defaults write com.apple.dock showhidden -boolean

Pinning

defaults write com.apple.dock pinning -string

Single App Mode

defaults write com.apple.dock single-app -boolean

Prevent changes to Dock contents for all users

defaults write /Library/Preferences/com.apple.dock contents-immutable -boolean

Auto Hide Other Apps on Fast User Switch

defaults write com.apple.dock single-app -boolean

Trash Full

defaults write com.apple.dock trash-full -boolean

Click and hold on application invokes Exposé

defaults write com.apple.dock show-expose-menus -boolean

Highlight stack items on hover (10.6)

defaults write com.apple.dock mouse-over-hilite-stack -boolean

Enable New List View in Stacks

defaults write com.apple.dock use-new-list-stack -boolean

Tile size

defaults write com.apple.dock tilesize -integer

Magnified icon size

??

Edge dragging delay

defaults write com.apple.dock workspaces-edge-delay -float

Show other spaces’ windows in Expose

??

disable multi-display swoosh animations

defaults write com.apple.dock workspaces-swoosh-animation-off -boolean-neg

Disable Expose

defaults write com.apple.dock mcx-expose-disabled -boolean

Always show the iTunes icon in notifications

defaults write com.apple.dock notification-always-show-image -boolean

Enable iTunes pop-up notifications

defaults write com.apple.dock itunes-notifications -boolean

Posted in Mac, Software, Tech Opinion | Tagged , , , , , | 1 Comment

Facebook Cover Photo Dimensions

Facebook has recently upgraded their pages and now allows you to add a Cover Photo – but what size is the ideal dimensions and what should the correct aspect ratio for the Cover Photos be?

Width: 851px Height: 315px 72dpi for internet / 300 for print RGB Color Scheme

Cover Photo Dimensions (Width and Height)

Just remember that the resolution dimensions of the timeline cover for Facebook is 851×315 pixels (width and height).

Download a sample image you can use as a template for your Facebook Cover Photo.

Get the Facebook Cover Photo Dimensions Photoshop Template

Download a template for the Facebook Cover Photo Dimensions, either as a JPG or a Photoshop File. (Right click and save the JPG, it will be rendered smaller than actual size in the web browser, but after you download it you will see it is the exact specified size for the Facebook Cover Photo)

Facebook Cover Photo Dimensions Template

Get the Facebook Cover Photo Dimensions Photoshop Template

High resolution background texture from here

Posted in Social Media | Tagged , , , , | 1 Comment

How to Reset WP to Twitter

The WordPress plugin WP to Twitter “posts a Twitter status update when you update your WordPress blog or post to your blogroll, using your chosen URL shortening service. Rich in features for customizing and promoting your Tweets.”

You can activate the plugin and then set all the options, but if you are having trouble the plugin offers no way to unset all of the options associated with it.

You can use the following sql / mySQL command to remove all of the options generated by this plugin. Use this at your own risk, and of course create a backup of your database before attempting this.

delete from
wp_options
where option_name in
('app_consumer_key',
'app_consumer_secret',
'bitlyapi',
'bitlylogin',
'comment-published-text',
'comment-published-update',
'disable_oauth_notice',
'disable_twitter_failure',
'disable_url_failure',
'jd_date_format',
'jd_donations',
'jd_dynamic_analytics',
'jd_individual_twitter_users',
'jd_keyword_format',
'jd_last_tweet',
'jd_max_characters',
'jd_max_tags',
'jd_post_excerpt',
'jd_replace_character',
'jd_shortener',
'jd_status_message',
'jd_strip_nonan',
'jd_tweet_default',
'jd_twit_append',
'jd_twit_blogroll',
'jd_twit_custom_url',
'jd_twit_prepend',
'jd_twit_remote',
'limit_categories',
'newlink-published-text',
'oauth_token',
'oauth_token_secret',
'suprapi',
'suprlogin',
'tweet_categories',
'twitter-analytics-campaign',
'twitterInitialised',
'use-twitter-analytics',
'use_dynamic_analytics',
'use_tags_as_hashtags',
'wp_bitly_error',
'wp_debug_oauth',
'wp_supr_error',
'wp_to_twitter_version',
'wp_twitter_failure',
'wp_url_failure',
'wpt_inline_edits',
'wpt_post_types',
'wtt_oauth_hash',
'wtt_twitter_username',
'wtt_user_permissions',
'yourlsapi',
'yourlslogin',
'yourlspath',
'yourlsurl')
Posted in Social Media, Tech Tips, Web Development | Tagged , , , | Leave a comment

Add Coupon To Coupon Cabin

If you are a merchant or contributing individual and want to submit a coupon to the couponcabin.com webiste, follow these instructions:

  1. Visit couponcabin.com
  2. Click on account
  3. Log in
  4. Click on submit coupon
  5. Voila!
Alternatively you can visit the page at http://www.couponcabin.com/stores/submit-coupon/

Posted in Social Media, Tech Tips | Tagged , , | 1 Comment

Woo Themes and Affiliate Link Structure

Recently received an error from Woo. It’s below, and it has some unique insights to how the database and affiliate tracking is done.

Database Error

A database error occurred while performing the requested procedure. Please review the database error below for more information.

system/libraries/drivers/Database/Mysql.php [371]:

There was an SQL error: Duplicate entry '9802422' for key 1 - INSERT INTO wm_affclick (aff_id, url, remote_addr, referrer, woo_product, is_unique) VALUES ('123456', 'http://www.woothemes.com/extension/google-product-feed/', '123.45.67.89', NULL, '', 0)

Stack Trace

  • system/libraries/drivers/Database/Mysql.php [99]:
    Mysql_Result->__construct(  )
  • system/libraries/Database.php [259]:
    Database_Mysql_Driver->query( INSERT INTO wm_affclick (aff_id, url, remote_addr, referrer, woo_product, is_unique) VALUES ('123456', 'http://www.woothemes.com/extension/google-product-feed/', '123.45.67.89', NULL, '', 0) )
  • system/libraries/Database.php [962]:
    Database_Core->query( INSERT INTO wm_affclick (aff_id, url, remote_addr, referrer, woo_product, is_unique) VALUES ('123456', 'http://www.woothemes.com/extension/google-product-feed/', '123.45.67.89', NULL, '', 0) )
  • application/models/affiliatestats.php [138]:
    Database_Core->insert( wm_affclick, Array
    (
        [aff_id] => 123456
        [url] => http://www.woothemes.com/extension/google-product-feed/
        [remote_addr] => 123.45.67.89
        [referrer] => 
        [woo_product] => 
        [is_unique] => 0
    )
     )
  • application/helpers/log.php [95]:
    AffiliateStats_Model->create( Array
    (
        [aff_id] => 123456
        [url] => http://www.woothemes.com/extension/google-product-feed/
        [remote_addr] => 123.45.67.89
        [referrer] => 
        [woo_product] => 
        [is_unique] => 0
    )
     )
  • application/controllers/go.php [124]:
    log_Core->add_affclick( 123456, http://www.woothemes.com/extension/google-product-feed/ )
  • Go_Controller->index(  )
  • system/core/Kohana.php [291]:
    ReflectionMethod->invokeArgs( Go_Controller Object
    (
        [uri] => URI Object
            (
            )

[input] => Input Object
    (
        [use_xss_clean:protected] => 1
        [magic_quotes_gpc:protected] => 1
        [ip_address] => 
    )

[session] => Session Object
    (
        [input:protected] => Input Object
            (
                [use_xss_clean:protected] => 1
                [magic_quotes_gpc:protected] => 1
                [ip_address] => 
            )

    )

) )

  • Kohana::instance(  )
  • system/core/Event.php [209]:
    calluserfunc( Array
    (
        [0] => Kohana
        [1] => instance
    )
     )
  • system/core/Bootstrap.php [55]:
    Event::run( system.execute )
  • index.php [106]:
    require( system/core/Bootstrap.php )
  • Loaded in 0.0088 seconds, using 1.13MB of memory. Generated by Kohana v2.3.4.

    Posted in Server Admin, Web Development | Tagged , , , | Leave a comment

    Remove WooCommerce Generator Tag

    If you would like to remove the Remove WooCommerce Generator Tag from the <head> section of your WordPress installation, you can add the following line somewhere, perhaps in your wordpress functions.php file:

    remove_action('wp_head', array($GLOBALS['woocommerce'],'generator'));

    I’ve updated the code to work with the most recent version of Woo Commerce, try adding this to the functions.php file of your WordPress theme:

    function remove_woo_commerce_generator_tag()
    {
        remove_action('wp_head',array($GLOBALS['woocommerce'], 'generator'));
    }
    add_action('get_header','remove_woo_commerce_generator_tag');
    

    That will prevent the following line from being shown in your HTML code:

    <!-- WooCommerce Version -->
    <meta name="generator" content="WooCommerce 1.5" />
    

    Remove WooCommerce Generator Tag

    Posted in Security, Tech Tips, Web Development | Tagged , , , , | 2 Comments

    Google Thinks You’re Awesome

    Google Thinks You’re Awesome if you are using Internet Explorer and download Google Chrome:

    I can’t say that I disagree.

    Posted in Marketing, Software | Tagged , , , | 1 Comment

    iPower: The server encountered an unexpected condition which prevented it from fulfilling the request.

    iPower: The server encountered an unexpected condition which prevented it from fulfilling the request.

    If you’re getting this error on iPower you need to enable CGI / scripts. Sometimes your account will show you that this is enabled, even if it is not. Contact iPower support to get them to resolve it for you.

    Even if in your control panel homepage CGI / PHP is showing up as active, click on the server configuration tab and you probably will see that CGI is in fact inactive:

    Posted in Server Admin, Server Administration, Web Development | Tagged , , , , , , | Leave a comment

    Install WordPress on Linux in 5 Seconds

    WordPress is available on WordPress.org in two formats, .zip and .tar.gz:

    I wanted an option to download and extract WordPress as easily as possible. I had looked for a way to do this with the zip format but apparently

    Archives read from standard input are not yet supported, except with funzip (and then only the first member of the archive can be extracted). (source

    So, my solution was to use WordPress’ latest.tar.gz file and pipe it (stdin/stdout). Running the following command will create a wordpress folder in your current working directory with all files:

    wget -O - http://wordpress.org/latest.tar.gz | gzip -c -d | tar -x
    

    Notes:

    wget -O -  //send output to stdout, use - before the URL
    gzip -c -d //read from stdin, decompress
    tar -x     // extract, could probably also use -v to verify
    
    Posted in Linux, Tech Tips, Web Development | Tagged , , , , , , , , , , | Leave a comment