WordPress SEO Variables

A simple list of all the `Wordpress SEO` replacement variables for creating dynamic titles / tags – updated as of Joost / Yoast’s SEO plugin version `1.4.23`:

%%sep%%
%%sitename%%
%%sitedesc%%
%%currenttime%%
%%currentdate%%
%%currentday%%
%%currentmonth%%
%%currentyear%%
%%date%%
%%searchphrase%%
%%page%%
%%pagetotal%%
%%pagenumber%%
%%term404%%
%%caption%%
%%category%%
%%excerpt%%
%%excerpt_only%%
%%focuskw%%
%%id%%
%%modified%%
%%name%%
%%tag%%
%%title%%
%%userid%%
%%category_description%%
%%tag_description%%
%%term_description%%
%%term_title%%
%%pt_single%%
%%pt_plural%%
%%category%%
%%tag%%

Posted in Tech Tips | Tagged | Leave a comment

How to add Google Chat SRV records on Digital Ocean

If you want to set up Google Chat, Jabber, or another XMPP client to work with Google Apps – such as [Olark](http://www.olark.com/) you will need to add some SRV records to your DNS entries.

If you are using Digital Ocean it might be a bit confusing to figure out what goes where.

The Google help page for documenting how to [Enable chat outside Google Apps](https://support.google.com/a/answer/34143?hl=en) gives you a little bit of information, and olark also has a [help page](http://www.olark.com/gtalk/check_srv) with details about which records to add – but there don’t seem to be enough boxes on Digital Ocean to input all of this information:

_xmpp-server._tcp.YOURSITE.COM. IN SRV 5 0 5269 xmpp-server.l.google.com.
_xmpp-server._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt1.xmpp-server.l.google.com.
_xmpp-server._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt2.xmpp-server.l.google.com.
_xmpp-server._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt3.xmpp-server.l.google.com.
_xmpp-server._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt4.xmpp-server.l.google.com.

_jabber._tcp.YOURSITE.COM. IN SRV 5 0 5269 xmpp-server.l.google.com.
_jabber._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt1.xmpp-server.l.google.com.
_jabber._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt2.xmpp-server.l.google.com.
_jabber._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt3.xmpp-server.l.google.com.
_jabber._tcp.YOURSITE.COM. IN SRV 20 0 5269 alt4.xmpp-server.l.google.com.

_xmpp-client._tcp.YOURSITE.COM. IN SRV 5 0 5222 xmpp.l.google.com.
_xmpp-client._tcp.YOURSITE.COM. IN SRV 20 0 5222 alt1.xmpp.l.google.com.
_xmpp-client._tcp.YOURSITE.COM. IN SRV 20 0 5222 alt2.xmpp.l.google.com.
_xmpp-client._tcp.YOURSITE.COM. IN SRV 20 0 5222 alt3.xmpp.l.google.com.
_xmpp-client._tcp.YOURSITE.COM. IN SRV 20 0 5222 alt4.xmpp.l.google.com.

Here is an example of what adding a record correctly should look like. See below for more details.

How to add Google Chat SRV records on Digital Ocean

So here is the trick – from that set of DNS records (above and from Olark) take the first column and remove the `YOURSITE.COM` part leaving you with this as the record “name”: `_xmpp-server._tcp` – you should have 5 entries for that – and 5 entries for the `_jabber._tcp` name, and 5 entries for the `_xmpp-client` name.

In each of the entries the weight will be `0` and the port will be `5269` and the priority for the first will be `5` and it will be `20` for the remaining four.

The hostname will be different for each of the entries – it will be the same as what is in the final column mentioned above – so for the first entry it will be `xmpp-server.l.google.com.`

Posted in Uncategorized | Leave a comment

chef client linode node.cloud ipaddress workaround

The current version of the opscode chef-server and chef-client have some issues with cloud data with linode based hosts.

It basically comes down to having a lot of nil values for the node attributes even though `node.cloud` is not `nil` or `null`

This causes issues with many cookbooks which depend on these attributes being set – like nagios and mysql.

the node.cloud attribute will return something like this:

=> {“public_ips”=>[“1.2.3.4”], “private_ips”=>[nil], “public_ipv4″=>nil, “public_hostname”=>nil, “local_ipv4″=>nil, “local_hostname”=>nil, “provider”=>”linode”}

The linode ruby gem is what is not setting these attributes correctly.

The error may look like:

Compiled Resource:
——————
# Declared in /var/chef/cache/cookbooks/nagios/definitions/nagios_conf.rb:29:in `block in from_file’

Or mysql may not start

The simplest workaround that I found was to look for the `linode.rb` file, which on Ubuntu is located somewhere like:

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.20.0/lib/ohai/plugins/linode.rb

Next I commented out the functions to return if this is a linode node or not and instead added the false value:

# Identifies the linode cloud by preferring the hint, then
#
# Returns true or false
def looks_like_linode?
#hint?(‘linode’) || has_linode_kernel?
false
end

It is a one line change and can be removed later and/or will be removed by reinstalling the chef omnibus package again – hopefully by then this linode issue will be fixed.

Why this works:

A lot of recipes try to be smart and if a node is on a cloud platform they will try to use the internal network address instead of the external address and fancy things like that. This change tells it “hey – this is not a cloud platform” and so the public IP will be used instead of giving an hash that has nil values for internal and external addresses on linode.

Make sure to re-run chef-client after making this change.

Posted in Tech Tips | Tagged | Leave a comment

WordPress 3.8 Released

WordPress 3.8 is here (ok, almost!) but you can [get it now](http://wordpress.org/download/nightly/) to see some of the cool stuff.

After upgrading you’ll get:

WordPress 3.8 Released

> **Welcome to WordPress 3.8** – Thank you for updating to WordPress 3.8, the most beautiful WordPress yet.

Features include:

– Introducing a modern new design
– **Modern aesthetic** – The new WordPress dashboard has a fresh, uncluttered design that embraces clarity and simplicity.
– **Clean typography** – The Open Sans typeface provides simple, friendly text that is optimized for both desktop and mobile viewing. It’s even open source, just like WordPress.
– **Refined contrast** – We think beautiful design should never sacrifice legibility. With superior contrast and large, comfortable type, the new design is easy to read and a pleasure to navigate.
– **WordPress on every device** – We all access the internet in different ways. Smartphone, tablet, notebook, desktop — no matter what you use, WordPress will adapt and you’ll feel right at home.
– **High definition at high speed** – WordPress is sharper than ever with new vector-based icons that scale to your screen. By ditching pixels, pages load significantly faster, too.

WordPress 3.8 Released

Refined theme management

The new themes screen lets you survey your themes at a glance. Or want more information? Click to discover more. Then sit back and use your keyboard’s navigation arrows to flip through every theme you’ve got.

Smoother widget experience

Drag-drag-drag. Scroll-scroll-scroll. Widget management can be complicated. With the new design, we’ve worked to streamline the widgets screen.

Have a large monitor? Multiple widget areas stack side-by-side to use the available space. Using a tablet? Just tap a widget to add it.

The admin theme is very different:

WordPress 3.8 Released

And so is the new theme:

WordPress captions it: “Twenty Fourteen, a sleek new magazine theme”

WordPress 3.8 Released

And the new default theme is called [TwentyFourteen](http://theme.wordpress.com/themes/twentyfourteen/)

###Turn your blog into a magazine

Create a beautiful magazine-style site with WordPress and Twenty Fourteen. Choose a grid or a slider to display featured content on your homepage. Customize your site with three widget areas or change your layout with two page templates.

With a striking design that does not compromise our trademark simplicity, Twenty Fourteen is our most intrepid default theme yet.

WordPress 3.8 Released

Posted in Design, Software | Tagged | Leave a comment

How to Enable Auto Sweep with Paypal

##What is Auto Sweep / Auto Withdrawl?

PayPal’s Auto Sweep is a Premier and Business Account feature that electronically transfers your PayPal balance into your bank account every night via the Automated Clearing House system. It takes 3 to 4 business days for the money to post to your bank account.

It’s like the PayPal Auto Withdrawl / Transfer API – except you don’t have to write any code.

You can automatically transfer your PayPal balance to a bank account by signing up for Auto Sweep. It is free. Auto Sweep transfers money to your bank account every night.

##What do you need to use AutoSweep?

How to Enable Auto Sweep with Paypal

To use Auto Sweep: You must have a [Premier account or Business PayPal account](https://www.paypal.com/us/webapps/helpcenter/article/?articleID=94050), have a bank account linked to your PayPal account and [not have a withdrawal limit](https://www.paypal.com/us/cgi-bin/webscr?cmd=_show-limits).

How to Enable Auto Sweep with Paypal

You may need to verify your account before your withdrawl limits are lifted.

##Important – One Caveat

If you do not see the Auto Sweep option when following the next steps, you will need to contact paypal to enable it. The easiest way to do that is to login into your PayPal account and click the Contact Us link – call the 800 number, and enter the PIN number you see on the screen.

##How to Enable Auto Sweep

Here’s how to use Auto Sweep

How to Enable Auto Sweep with Paypal

1. Go to www.paypal.com and log in to your account
1. Click ‘Profile’ near the top of the page click “My money”
1. Hover over “More” near “PayPal balance”
1. Click “Auto Sweep”
1. Click ‘Edit’
1. Click ‘Yes’
1. Celect the bank you want your money transferred to
1. Click ‘Save’

Posted in Tech Tips | Tagged | Leave a comment

SSH Autocompletion – Disable using /etc/hosts – brew

I use the `bash-completion` keg from `homebrew` to get better bash-completion on Mac OS X. You can install it with

brew install bash-completion

You can also get some information about it using:

brew info bash-completion

It will tell you something like:

bash-completion: stable 1.3
http://bash-completion.alioth.debian.org/
/usr/local/Cellar/bash-completion/1.3 (187 files, 1.1M) *
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/bash-completion.rb
==> Caveats
Add the following lines to your ~/.bash_profile:
if [ -f $(brew –prefix)/etc/bash_completion ]; then
. $(brew –prefix)/etc/bash_completion
fi

Homebrew’s own bash completion script has been installed to
/usr/local/etc/bash_completion.d

Bash completion has been installed to:
/usr/local/etc/bash_completion.d

To find out where the file that does all the work is stored, run:

echo $(brew –prefix)/etc/bash_completion

It will probably tell you something like:

/usr/local/etc/bash_completion

That file has a lot of comments in it, one of the gems being:

_known_hosts_real()

# Helper function for completing _known_hosts.
# This function performs host completion based on ssh’s config and known_hosts
# files, as well as hostnames reported by avahi-browse if
# COMP_KNOWN_HOSTS_WITH_AVAHI is set to a non-empty value. Also hosts from
# HOSTFILE (compgen -A hostname) are added, unless
# COMP_KNOWN_HOSTS_WITH_HOSTFILE is set to an empty value.
# Usage: _known_hosts_real [OPTIONS] CWORD
# Options: -a Use aliases
# -c Use `:’ suffix
# -F configfile Use `configfile’ for configuration settings
# -p PREFIX Use PREFIX
# Return: Completions, starting with CWORD, are added to COMPREPLY[]

The short story is that if you set up something in your `~/.bash_profile` file like this:

export COMP_KNOWN_HOSTS_WITH_HOSTFILE=”” #don’t use /etc/hosts for ssh autocomplete

Then your `ssh` autocomplete will only be working from the ssh configuration file and not your `/etc/hosts` file – which if you have a lot of entries could be frustrating.

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

TiVo Roamio Pro HD – Black Friday Sale 2013

The TiVo Roamio Pro HD, normally priced around $599, is on sale at Amazon for $573.60 with free shipping.

TiVo Roamio Pro HD – Black Friday Sale 2013

This DVR unit is the premier unit from TiVo, including many capabilities and features:

  • Record 6 shows at once (6 tuners)
  • Up to 450 HD / 3000 SD hours recording capacity (3TB)
  • Works with digital cable or Verizon FIOS
  • Built in wireless networking
  • Netflix, Hulu Plus, Amazon Instant Video, Pandora, Spotify and more

It also works with the TiVo Mini which allows you to watch recorded shows and HDTV in multiple rooms – expanding your primary Tivo.

Posted in Marketing | Tagged , | Leave a comment

little snitch netbiosd

What is `netbiosd` and why does your Mac keep making connections with `netbiosd` ?

If you’ve installed little snitch you’ll see requests from `netbiosd` for things like `port 137` for `netbios-ns`:

little snitch netbiosd

Well, according to the `netbiosd` manual / `man` page:

> netbiosd is responsible for interacting with NetBIOS networks. netbiosd registers and defends one or more NetBIOS name[s], depending on the set of configured services. It also browses and scavenges names from the NetBIOS network, making them available to the system through mDNSResponder.

One suggestion is that if you want `netbiosd` to stop making connections you should turn off file and print sharing via “Sharing” in system preferences

Posted in Tech Tips | Leave a comment

Hombrew Upgrade PHP54 – make ext/ldap/ldap.lo Error 1

If you are trying to upgrade brew / homebrew’s PHP54 package by josegonzalez – especially if you have `oci8.so` / `pdo_oci.so` you might be getting an error like this:

Hombrew Upgrade PHP54 – make ext/ldap/ldap.lo Error 1

The actual text of the message is something like:

$ brew upgrade

Updated Homebrew from 5b3410b6 to 44c284ff.

==> Upgrading 2 outdated packages, with result:
php54 5.4.22, php54-mcrypt 5.4.22
==> Upgrading php54
==> Downloading http://www.php.net/get/php-5.4.22.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.22
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure –prefix=/usr/local/Cellar/php54/5.4.22 –localstatedir=/usr/local/var –sysconfdir=/usr/local/etc/php/5.4 –with-config-file-path=/usr/local/etc/php/5
==> make
rc = ldap_sasl_interactive_bind_s(ld->link, binddn, ctx->mech, NULL, NULL, LDAP_SASL_QUIET, _php_sasl_interact, ctx);
^
11 errors generated.
make: *** [ext/ldap/ldap.lo] Error 1
make: *** Waiting for unfinished jobs….

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not mxcl/homebrew):
https://github.com/josegonzalez/homebrew-php/issues

==> Upgrading php54-mcrypt
Warning: Could not link php54. Unlinking…

###Why does this happen?

In my case it was because I installed `oracle instaclient` and was using that alongside homebrew. It has library files referenced in `/usr/local/include` and they don’t play nice when you upgrade PHP / php54 with homebrew.

###How do I fix it?

Open terminal and change to `/usr/local/include/`

Type in something like `ls -al | grep ldap` to be presented with something like this:

lrwxr-xr-x 1 user group 52B Nov 19 21:37 ldap.h -> /usr/local/instantclient/11.2.0.3/sdk/include/ldap.h

Copy and paste that – make sure you write down the path of where that `symlink` is pointing.

Now you can do `rm ldap.h` to remove the symlink.

Next upgrade php54 with `brew upgrade` or `brew upgrade php54` and when that has completed you can change back to that directory again and then type:

ln -s /usr/local/instantclient/11.2.0.3/sdk/include/ldap.h

You will need to replace the path you copied and pasted because most likely it will not be the same as mine.

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

How To Sign Into Amazon Console With IAM

Users who want to use the AWS Management Console must sign in to your AWS account through the IAM-enabled sign-in page that’s specific to your account. You provide your users with the URL they need to access the sign-in page. You can find the URL for your account on the dashboard of the IAM console.

How To Sign Into Amazon Console With IAM

When users use the link you give them, they will see a sign-in page similar to the following page.

How To Sign Into Amazon Console With IAM

[More info here](http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_AccessingConsole.html)

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