Email body is missing, please drop a line.

Email body is missing, please drop a line.

Email body is missing, please drop a line.

Google Analytics E-mail reporting requires that you enter a body in your e-mail

Posted in Tech Tips, Web Development | Tagged , | Leave a comment

WordPress: Get all terms for a post

Get all terms for a Post in WordPressFirst you need to get the available taxonomies so that you can pass them to the wp_get_object_terms function to get all of the terms / categories / tags / custom tax terms associated with a single post:

$taxonomies = get_taxonomies('','names'); 
print_r($taxonomies); //optional for debugging

That will likely return something like this:

Array
(
    [category] => category
    [post_tag] => post_tag
    [nav_menu] => nav_menu
    [link_category] => link_category
    [post_format] => post_format
    [product_type] => product_type
    [product_cat] => product_cat
    [product_tag] => product_tag
    [product_shipping_class] => product_shipping_class
    [shop_order_status] => shop_order_status
)

Next you can use the wp_get_object_terms function, passing the post’s ID(s) and the list of taxonomies to get all of the terms associated:

global $post; //optional if you are inside the "loop"
$terms = wp_get_object_terms($post->ID,$taxonomies);
print_r($terms); //optional for debugging


Array
(
    [0] => stdClass Object
        (
            [term_id] => 2
            [name] => Blogroll
            [slug] => blogroll
            [term_group] => 0
            [term_taxonomy_id] => 2
            [taxonomy] => link_category
            [description] => 
            [parent] => 0
            [count] => 7
        )

    [1] => stdClass Object
        (
            [term_id] => 14
            [name] => Lightweight
            [slug] => lightweight
            [term_group] => 0
            [term_taxonomy_id] => 14
            [taxonomy] => product_cat
            [description] => 
            [parent] => 0
            [count] => 1
        )

    [2] => stdClass Object
        (
            [term_id] => 15
            [name] => tag1
            [slug] => tag1
            [term_group] => 0
            [term_taxonomy_id] => 15
            [taxonomy] => product_tag
            [description] => 
            [parent] => 0
            [count] => 1
        )

    [3] => stdClass Object
        (
            [term_id] => 5
            [name] => simple
            [slug] => simple
            [term_group] => 0
            [term_taxonomy_id] => 5
            [taxonomy] => product_type
            [description] => 
            [parent] => 0
            [count] => 1
        )

)

And that’s how you get all terms for a post in wordpress. I decided to write this after unsuccessfully searching for the terms below. Leave a comment if this helped you or if you have a fix / improvement / question.

  • wordpress get all terms post
  • wordpress get all taxonomies
  • wordpress get all terms
  • wordpress get all terms post
Posted in Web Development | Tagged , , , | Leave a comment

Prevent Macbook From Sleeping With Lid Closed

On a MacBook Air, MacBook Pro, or Macbook with traditional clamshell mode, an external display, mouse, and keyboard must be attached in order to maintain the running closed-lid clamshell state. Thanks NoSleep we can now remove those hardware limitations and run a Mac laptop with the lid closed and no hardware attached.

The problem I was facing was that when I had a keyboard, trackpad, and external monitor attached and removed the power supply / power adapter my macbook would go to sleep.

Now thanks to NoSleep I can easily toggle the sleep mode to keep the computer awake.

This is similar to the Caffeine extension which can keep your monitor awake during presentations – it also sits in the menu bar.

Prevent Macbook From Sleeping With Lid Closed

Download NoSleep from Google Code

Posted in Mac, Software, Tech Tips | Tagged , , , | Leave a comment

How to do a Random Drawing / pick at random using Excel

Are you running a contest or sweepstakes an need a system to pick random winners out of a pool of names? You could take the old-school approach of writing names on business cards and pulling them out of a fishbowl, or you could use Microsoft Excel.

Put the names in an excel sheet. add a column and put =RAND() in it. it will give a random number that is recalculated every time a change is made on the sheet. choose that column and click sort “a-z” (or z-a). it won’t matter because each time you do it will randomize the names. Just pick the top one (or top 10) after sorting it.

Excel: Pick a Random Winner

Posted in Random, Security, Tech Tips | Tagged , , , , , , | 1 Comment

Android Market Share Surges in Q1 2012

Q1 NPD number is out. Android surged to 61%. iOS dropped to 29%.

Compare that with ComScore’s February number: Android 50.1%, iOS 30.2%

Worldwide profit estimate by Asymco

  • Apple: 73%
  • Samsung 26%
  • Everyone else: 1%

In Cupertino “ecosystem”, 80% of iOS developers lose money

OS Share of Smartphone Phones

OS Share of Smartphone Phones

2012 Q1 Profit Shares of 8 Mobile Phone Vendors

2012 Q1 Profit Shares of 8 Mobile Phone Vendors

Source

Posted in Mac, Marketing, Software, Tech Opinion | Tagged , , , , | Leave a comment

Reset 1Password Keyboard Shortcuts – Solved

You’ll see from the 1password support site that there is a bug having to do with resetting the default shortcut keys. There are two versions of 1Password, one installed from their website and one installed from the app store.

If you use the one from the app store, you an delete these two files to reset all the preferences:

Folder:
~/Library/Containers/com.agilebits.onepassword-osx/Data/Library/Preferences/

Files
com.agilebits.onepassword-osx.plist
com.agilebits.onepassword-osx.plist.lockfile

ps: You may want to make a backup of these.

If you’ve downloaded the program from their website, you will find the plist file located instead at:

~/Library/Preferences/ws.agile.1Password.plist

You can also open these 1Password plist preference files with a program like PlistEdit Pro.app and simply find the following two values and delete them:

ShortcutRecorder bookmarks
ShortcutRecorder restoreForm

For some related information, see the help article on their support forum.

Reset 1Password Keyboard Shortcuts

Posted in Mac, Software, Tech Tips | Tagged , , , , | Leave a comment

Where can I download rdpclip for Windows XP?

rdpclip.exe is the main executable for File Copy and gives functionality to Terminal Services (remote desktop) server that allows you to copy and paste between server and client.

File Copy is an extension to Terminal Services server that lets you copy and paste between the server and the client. RdpClip lets you copy and paste files between a terminal session and a client console session.

Download RDPCLIP by visiting

http://download.microsoft.com/download/win2000platform/rdpclip/1.0/NT5/EN-US/rdpclip_hotfix.exe

download rdpclip for windows xp

Posted in Software, Tech Tips | Tagged , , , , | Leave a comment

Nagios: Monitor SSL Certs

Nagios: Monitor SSL Certs Nagios has the ability to monitor SSL certificates for expiration. Here’s how to do it:

Steps for Nagios to Monitor SSL Certs

Download the checksslcertificate plugin from the nagios exchange site

Installation:

Edit the script, replacing the line:

use lib "/usr/lib64/nagios/plugins";

with the path to your nagios plugins directory (where utils.pm is located). For me on Ubuntu 10.04 this was

use lib "/usr/lib/nagios/plugins";

Also edit the line:

my $openssl = "/usr/bin/openssl";

with the path to your openssl binary. Then copy the script into your nagios plugins directory, for Ubuntu 10.04 it was

/usr/lib/nagios/plugins

I also updated line 155 – 158 of the script, because it has a bug that allows expired certificates to show up as passing:

if ($daysLeft < 0) {
  print "$PROGNAME: CRITICAL - $cn expired " . abs($daysLeft) . " day(s) ago.\n";
  exit $ERRORS{'CRITICAL'};
} elsif ($daysLeft <= $critical) {

The key part is adding in this line:

exit $ERRORS{'CRITICAL'};
Posted in Server Admin, Server Administration | Tagged , , , | Leave a comment

Rejuvaskin 888-377-2226 Scam

I recently had a odd charge show up on my credit card statement:

Rejuvaskin 888-377-2226

I don’t know what this is from but the phone number points to this company in St. Joseph, Missouri:

Package Deal
2400 Frederick Ave. Suite 312
Saint Joseph, MO 64506

Phone: 888-377-2226
Fax: 816-676-0600
Email: packagedeal@sbcglobal.net
Web site URL: http://www.asisupplier.com/

I looked up the WHOIS information on that website (which does not load in my browser) and found:

Advertising Specialty Institute Inc.
4800 Street Road
Trevose, Pennsylvania 19053
United States

I researched Rejuvaskin but apparently this charge has nothing to do with Rejuvaskin or other companies that sell it (I called the Rejuvaskin company), then after calling my credit card company they confirm that the phone number is correct for the merchant who charged my card.

I have been trying to get in contact with Advertising Specialty Institute Inc. but their phone number just gives me a recorded message and then hangs up. I’m going to try and file with the BBB next.

I do remember signing up for a free trial but I never authorized my credit card to be billed and now it has been billed three times for $79.99. I don’t have $79.99 to throw away and I have been billed three times on March 7, March 31, and now on May 1.

Maybe this is not a scam but I am going to assume it is until I can get in contact with Package Deal / Advertising Specialty. Please leave a comment below if this has happened to you and if you have any luck in figuring out why this charge is showing up on your statement.

I also would recommend contacting your credit card company.

Update 1

Their above website doesn’t load but if you do a site search on google for asisupplier.com you will find they have over 2 MILLION pages indexed in google selling all sorts of different garbage items. I’m going to search my e-mail inbox for asisupplier.com and see if I can find anything.

This is a screen shot from one of their sites: http://pilgrimplastics.asisupplier.com/

Rejuvaskin 888-377-2226

ps: when I first typed in the number I used 888-337-2226 ( too many threes )

Posted in Marketing | Tagged , | 2 Comments

Google Voice is down – Error 500

Google Voice is down – Error 500

Google voice is down with an Error 500: Internal Server Error

An error 500 is a generic error message, given when no more specific message is suitable.

Google voice is also not answering when you call your Google Voice number from a Google Voice connected phone – normally you get a menu with prompts to check Google Voice Mail and make calls.

Apps like GrowlVoice are also not responding.

The issue seems to be more than just the Google Voice website – the entire Google Voice system is actually down.

Update

After about 20 minutes of being down today Google Voice is back up again.

Posted in Software, Tech Tips | Tagged , | Leave a comment