Best e-cigarette affiliate

I’ve tried all the top e-cigarette affiliate networks, but the highest earning one, at least for me, is GreenSmoke. They offer commissions for the life of any customers that you bring in, which means that long after somebody has made their initial purchase with your cookie, you will still be earning a commission every time the customer buys refills or a new e-cigarette kit.
Click here to view their affiliate sign up page.

Best e-cigarette affiliate

Search and replace line breaks using Notepad++

Do you need to insert or replace line breaks into a document? A really BIG document? I did. I needed to manually create multiple sitemaps for a site with 250,000 pages, based on a 20MB csv file. I needed to remove the junk, and replace each line break with the required tags for each url in the sitemap. After realizing that Dreamweaver 8′s search and replace function was going to take all day to complete (it’s good, but not fast), I decided to find a better way. That better way is using Notepad++.

Simply select the extended search mode in the search and replace window, and then use n or r in the search or replace field. It’s an incredibly simple and elegant way to do it. And the best thing is, Notepad++ breezed through my 20MB csv file in seconds, and I had my monstrous sitemaps done in about 10 minutes.

Shocked by HostGator hosting

Six months ago one of my clients asked me to set up some *cheap* US hosting for them. I didn’t have much time to research US hosts (try 20 minutes), and ended up going with HostGator simply on price – thinking that I’d take my time to do some research, and move my client to a better host at the end of the month…

HostGator

Long story short – I didn’t bother. In fact, I ended up moving a few more accounts over to HostGator. I was expecting HostGator to be cheap and nasty, but so far, the up time and support (which I’ve used several times) has been as good as any other host that I’ve used in the last 10 years – but at less than half the price. I’ve now been hosting several of my clients’ domains (and a few of my own) with HostGator for nearly six months, and for the price, I couldn’t be happier.

FoxClocks – useful FF addon for citizens of the world

Regardless of where you are right now, if you do business with “the rest of the world” then you need to know what time it is everywhere. I do a lot of business with people in the UK, California and New York, and since my internal clock can only (just) deal with one time zone, I wanted a clean and elegant way to display several city times at once. The answer is Andy McDonald’s brilliant FoxClocks addon for Firefox. You can put it just about anywhere in any of your Firefox toolbars, and it can be easily customized to suit whatever time zones you need to keep an eye on.

FoxClocks

Firefox 4 font rendering sucks

Just when I was getting used to the horrible way that Windows 7 renders fonts, Firefox 4 has gone and made my life even more miserable. The default font rendering settings on Firefox 4 are jaggy and washed out, but luckily can easily be fixed by turning off hardware acceleration. To turn if off, untick the box in Options > Advanced > General > Use hardware acceleration when available, then restart Firefox. Here’s a before and after screenshot:

Firefox 4 font rendering

OSX on VirtualBox

OSX on VirtualBox

If you want to run OSX on a Windows install of VirtualBox, you need to do 2 things.

The main reason that I installed VirtualBox in the first place was to test a few different Linux distributions before setting up a dual boot Windows/Linux system. After realizing that I could happily run Linux as a virtual OS under Windows 7 instead of dual booting, I started messing around with the idea of running OSX inside my Windows 7 machine. After hitting several deadends, I discovered that the later versions of VirtualBox SIMPLY DO NOT work with OSX unless you have Mac hardware. So after restricting myself to VirtualBox 3.2.10-66523, I finally managed to get OSX running from within Windows 7 on an Intel PC. And it works really really well. Do it. It’s fun.

Run Dreamweaver 8 on Windows 7

Macromedia Dreamweaver 8 on Windows 7

My favourite code editor is Macromedia (not Adobe!) Dreamweaver 8 – it has coloured syntax highlighting, FTP, code hints, and an incredibly powerful search function (I especially like the ability to perform a search and replace on an entire local directory). I’ve recently switched to Windows 7 64 bit on my main desktop, and have found a simple solution to stop the random crashes that occur with Dreamweaver 8 on Windows 7.

  1. Get the 8.0.2 update from Adobe here. <<< Link updated!
  2. Unzip it, preferably to somewhere that you can navigate to easily via a command prompt.
  3. Type “cmd” (without quotes) into the Start Menu search bar, do NOT press enter, then right click on the cmd.exe icon and select “Run as administrator”.
  4. Navigate to the directory where you extracted the update, and type this:
    msiexec /update patchpackage.msp
  5. Press enter, and follow the update prompts.
  6. You are now running Macromedia Dreamweaver 8.0.2, hopefully without the random crashes.

Display RSS feeds using PHP

Display RSS feeds using PHP

Everyone knows that you can display RSS feeds on your website using third party widgets, but you usually won’t have much control over how the feed content is blended in with your own page, and if the widget goes offline, or goes out of business, then you’re in trouble.

Most hosts now provide cURL and PHP5, which makes displaying RSS feeds on your website easy enough to do it yourself.

Here’s a really simple example that pulls in the Yahoo news feed, grabs the title and story as variables, and then spits them back out – displaying the title in bold, followed by the story:

Continue reading

jQuery slideshow

jQuery slideshow

Jonathan Snook has written an elegant little jQuery slideshow (20 lines!) with nothing more than a simple fading transition. It allows you to specify the static ‘wait’ time and also the transition speed, and that’s about it. Which is exactly what some of us are looking for. Get it here.