How To Open .jar Files Automatically in Mac OSX

A random program that I installed reset the default application (Java) for .jar files on my Macbook, and to reset the behaviour in Mac OSX took a bit more work than I thought. Turns out the “Java Launcher” isn’t in the list of applications that you can select from, in the “Open With…” list. You’ll need to select “Open With”, choose “Other”, and browse to the following: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java Ensure that it’s set to “Always Open With”, and you should

Continue Reading

How to redirect one domain to other domain with all query string variables (htaccess)

If you ever have the need to move domain names, the following .htaccess code will help move all visitors to your second domain name. This method also preserves your URLs’ query string variables, so there’s a less likely chance of something breaking. You can use this: RewriteEngine On RewriteCond %{HTTP_HOST} firstdomain.com$ RewriteRule ^(.*)$ http://www.seconddomain.net/$1 [L,R=301]

How to find and replace a text string in all files on your cPanel / WHM / Linux / Unix server

If you need to quickly find and replace all occurrences of a string of text, the Linux shell is a very helpful too. To do this, we’ll be using the find, xargs, and sed commands. Find is pretty self-explanatory, and sed is short for “stream editor”, which allows you to filter and transform text. xargs is a command that takes in input and executes your chosen command on it – and in our following example, allows you to run the

Continue Reading

How to find and replace text string in all MySQL tables

The following tutorial is helpful if you have a MySQL database and need to find and replace all occurrences of a string, for example, replacing “www.YourOldDomain.com” with “www.YourNewDomain.com”. This is useful if you are moving or cloning your website to another domain, especially if you are using software such as WordPress. First, go to your old domain name and export the ENTIRE database, including enabling the option to “drop tables” if they’re already present. If you’re using PHPMyAdmin, you’ll want

Continue Reading

How To Mass Update WordPress URLs After a Site Migration

If you’ve moved your WordPress installation from one URL structure to another, then you might find that certain things might break: for example, image paths. Updating all your paths will just take a few seconds with a simple MySQL command. Go to PHPMyAdmin, a popular database management panel that your web host should provide you with, and open up your WordPress database. What we’re going to do is to perform an update of all BLOB fields, or in other words,

Continue Reading

How To Easily Mass Update Multiple Email Messages With The Same Text

As an email marketer, wouldn’t it be cool if you could have a set of text in all your different email messages, that you can change in one place, and have all your emails messages updated together? Well, I just discovered that AWeber could do this with their global snippets feature. The other email marketing services do not seem to have this feature, so that says again how powerful AWeber is as a marketing service. This is awesome and is

Continue Reading

How To Dynamically Insert Affiliate Links or Track Referrals With Aweber

If you are looking to build an email list, and want to be able to use custom variables in the emails that you send out, then this guide is for you. Here are some example use cases: Tag subscribers to affiliates, so that you can add their Clickbank hop ID to all your links, in all your future email broadcasts/autoresponders Track total revenue based on where you acquired a subscriber. E.g. track Google Analytics variables by appending them to all

Continue Reading

Sliding Sidebar