Roundcube installation on shared hosting with Firefox Webmail Notifier

February 16th, 2012

This tutorial is going to explain how to install the webmail IMAP client Roundcube on shared hosting and then integrate it with the Firefox plugin Webmail Notifier.

Firstly, why the need to install Roundcube in the first place, don’t many hosting companies already provide it built into cPanel? Yes, they do, but the benefit to hosting it yourself is plugins! There are hundreds of plugins that allow you to do pretty much anything. The main reason for me for moving to a self-hosted Roundcube was the plugin Accounts, which allows multiple IMAP accounts from the single interface.

Let’s begin. For the below example, I am going to use the required configuration for Hostgator shared hosting, it maybe different with a different host.

Install Roundcube

Download a copy of Roundcube from roundcube.net, and extract it to the desired location, i.e. mydomain.com/mail (which you could then create a subdomain mail.mydomain.com pointing to it).

In Firefox navigate to mydomain.com/mail/installer for the Roundcube Webmail Installer, click Start Installation and make sure you meet the server environment requirements.

Database setup

Login to cPanel phpMyAdmin and create a new MySQL database called roundcubemail or similar, create a new user and assign it full access privileges to the new database.  Fill the Database setup section with user and password details.

IMAP Settings

The IMAP Settings for Hostgator shared hosting are;

default_host – the primary domain name, in my case it is thydzik.info

default_port – remains at port 143

username_domain – this is the IMAP email address, in my case it is something@thydzik.com

SMTP Settings

The SMTP Settings for Hostgator shared hosting are;

smtp_server – mail.mydomain.com, in my case it is mail.thydzik.com

smtp_port – remains at port 25

smtp_user – the IMAP email address, in my case it is something@thydzik.com

smtp_pass – the IMAP email address password

Click create config, then download the two files main.inc.php and db.inc.php and upload them to mydomain.com/mail/config.

Click continue and Test IMAP config to make sure everything is working. Delete the installer folder.

Installing Webmail Notifier Roundcube plugin

Download the Roundcube Plugins pack from MyRoundcube and copy the plugin folder webmail_notifier to mydomain.com/mail/plugins/webmail_notifier. Change the file name of mydomain.com/mail/plugins/webmail_notifier/config.inc.php.dist to config.inc.php.

Edit the file mydomain.com/mail/config/main.inc.php and add webmail_notifier to the list of plugins, similar to;

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('someotherplugin', 'webmail_notifier');

Login to Roundcube and navigate to the Settings (top right corner), Navigate to section Mailbox View, there will be a new section New Message, download the script from the Get Firefox Webmail Notifier Script download icon.

Roundcube Webmail Notifier Configuration

Installing the Firefox WebMail Notifier plugin

From the same Mailbox View section you can navigate to the Firefox WebMail Notifier plugin page using the Get Firefox Webmail Notifier Addon download icon. Install the plugin and restart Firefox, a grey envelope should appear in the Add-on Bar. Right-click the envelope and select Options,  click the Scripts button, then Add and select the localhost.js previously downloaded from the Get Firefox Webmail Notifier Script.

In WebMail Notifier configure a new account, using the localhost script, enter the IMAP details as previously detailed;

Username – this is the IMAP email address, in my case it is something@thydzik.com

Password – this is the IMAP email address passpword

Webmail Notifier Configuration for Roundcube

If everything was successful you should now see a Roundcube icon and be notified of all new emails.

Webmail Notifier with Roundcube configuration successful

Repair a punctured tyre with tire repair strips

February 14th, 2012

Here is a quick post on how to repair a minor puncture on a car’s tyre. I purchased a car tyre repair kit from eBay for $5.50 including postage. Here’s what I received;

  • A raspier tool for enlarging the hole,
  • A needle insertion tool for inserting the repair strips,
  • A small tube of rubber adhesive, and
  • Five tyre repair strips.

Puncture repair kit, tools, adhesive and strips
Five tyre repair strips

How to repair a puncture

A puncture to the tyre's side wall

First remove a repair strip and insert it into the need hole of the insertion tool, this was the most difficult and used some pliers to help me pull it though, I was surprised and happy that the repair strips were not sticky at all. Pull the strip so it is centred in the insertion tool.

Insert a strip into the insertion tool

Cover the strip with copious amounts of rubber adhesive, this will assist with the strip sticking to the inside of the tyre. Insert the needle insertion tool (with the strip) into the tyre hole, don’t insert it all the way down, but ensure both ends are still protruding.

Now twist the insertion tool slighty (this will get it all knotted inside) before pulling it out of the hole, you may need to use some pliers to ensure the strip remains inside.

Insert the strip into the puncture

Inflate the tyre and ensure no leaks

Related posts:

  1. Motorola RAZR V3 repair and housing change guide
  2. Canon EFS 17-85mm IS stuck/locked zoom repair/disassembly
  3. How to repair High Heel Shoes for a few dollars

Review of USB Safely Remove – the device cannot be stopped right now

January 27th, 2012

Sick of constantly experiencing the Window’s “The device ‘Generic volume’ cannot be stopped because a program is still accessing it.” message, I decided to give the program USB Safely Remove a test.

The first time trying to stop my USB hard-disk-drive I get the following “Could not find any processes locking USB device!”, great, the one program that advertises as “an enhanced and hassle-free replacement for Windows safe removal tool” doesn’t even work.

Back to directly unplugging the drive.

USB Safely Remove - the device cannot be stopped right now

Related posts:

  1. Huge Pine USB to Serial Ports Driver
  2. USB Wireless Presenter with Mouse and AutoHotkey
  3. USB2IDE drivers for Microsoft Windows 98

How to dye fabric with Procion dye

January 26th, 2012

Procion is a brand of reactive dyes, meaning the dye reacts with the cellulose fibres (plant-based fibres including cotton and linen) of fabric. A cellulose fibre will not work on protein fibre (animal-based fibres including silk and wool), it which case Acid Dye will need to be used.

I chose Procion over Acid Dye due to being a little cheaper, and the specific Procion type I bought was Procion MX, a cold water dye, what I didn’t realise was a fixer/setter is also required in this case sodium carbonate (soda ash) as this added to the price.

Both items can be purchased from eBay seller prothree and including shipping cost $6 for the Procion (25g) and $5.50 for the Soda Ash (200g).  Acid dye (10g) can be purchased for $7.

Procion MX and soda ash

The procedure to dye fabrics with Procion MX is fairly straight forward, what I planned to dye black was a pink top and grey skirt.

Procedure

  1. First fill a container with about ten litres of water, add the Procion MX dye and stir to make sure everything is dissolved and mixed evenly.
  2. Immense the cloths in the dye bath and stir for thirty minutes to make sure cloths are evenly dyed.
  3. Add the soda ash and again stir for thirty minutes to make sure soda ash is dissolved and mixed evenly.
  4. Remove cloths from dye bath and rinse with clean water to remove excess dye.
  5. Once the majority of dye is removed, it can be machine washed to remove any traces.

Mixing the dye bath
Add the fabrics to the dye bath

Enjoy the newly coloured clothes.

Skirt before and after
Top before and after

Correspondence with Property Manager LJ Hooker Belmont WA – The Hidden Charges

January 17th, 2012

I received an email from the L J Hooker Belmont WA Principal / Licensee when I enquired about the monthly Postage and Petties Fees, here is a list of all the items you are charged separately for (not included in the property management fee);

  • Phone calls to yourself and your tenant and to arrange tradesmen for your property,
  • Correspondence posted to yourself and your tenant (things like routine inspection notices, breaches, tenant invoices),
  • Printing and stationery cost,
  • Bank fees charged for the collection of rent and transfer of funds by BankWest, and
  • Access to the internet for use of email.

With all the items listed, I am surprised that LJ Hooker Belmont WA premises water and electricity is not also charged.

Related posts:

  1. Correspondence with Property Manager LJ Hooker Belmont WA – First Tenants
  2. Correspondence with Property Manager LJ Hooker Belmont WA – Introduction
  3. Correspondence with Property Manager LJ Hooker Belmont WA – Dogs, Stickers and Powerpoints

Blacklisting all yahoo.com email addresses

December 23rd, 2011

For some reason, I am getting a large amount of spam form yahoo.com email address, previously, I blacklisted these email address, but this became too time consuming, so I have now created a catch-all and blacklisted ALL yahoo.com email addresses. Only .com are affected, .com.au, .co.uk and all variants are unaffected. I have whitelisted those yahoo address of friends, but apologies if your yahoo email address doesn’t get through.

Calculate Stamp Duty with Excel

December 22nd, 2011

A quick post of how to calculate the Stamp Duty of a property with Excel, in my example I am using the Western Australia Residential Rate Dutiable value.

Stamp Duty
Cutoff [$]  Rate [%]  Duty [$]  Formula
0           1.9       0    0
120000      2.85      2280      =C3+(A4-A3)*B3/100
150000      3.8       3135      =C4+(A5-A4)*B4/100
360000      4.75      11115     =C5+(A6-A5)*B5/100
725000      5.15      28452.5   =C6+(A7-A6)*B6/100

Property Value        500000    
Duty                  17765     =VLOOKUP(C9,A:C,3,TRUE) + (C9-VLOOKUP(C9,A:C,1,TRUE))*VLOOKUP(C9,A:C,2,TRUE)/100

Download the Excel WorkBook.

Update, next day
This also works for Individual income tax rates;

Tax Rates
Cutoff [$]  Rate [%] Tax [$]  Formula
0           0        0        0
6000        15       0        =C3+(A4-A3)*B3/100
37000       30       4650     =C4+(A5-A4)*B4/100
80000       37       17550    =C5+(A6-A5)*B5/100
180000      45       54550    =C6+(A7-A6)*B6/100

Income               100000
Tax                  24950    =VLOOKUP(C9,A:C,3,TRUE) + (C9-VLOOKUP(C9,A:C,1,TRUE))*VLOOKUP(C9,A:C,2,TRUE)/100

Related posts:

  1. VBA automatically saves Excel 2003 Workbook in compatibility mode as Excel 2007 Workbook

Correspondence with Property Manager LJ Hooker Belmont WA – Dogs, Stickers and Powerpoints

December 21st, 2011

In August I receive an email from property manager LJ Hooker Belmont WA;

“The tenant has informed me that the door handle from the passage leading into the lounge & Bedroom 3 can not be opened from inside the passage area and when you are in the Bedroom, this could be a fire hazard. “

As I was back in the country I managed to make an appearance and resolve this myself, I also noticed a number of things I wasn’t happy with.

Dogs

Firstly, the dogs stated in the tenant agreement were not Chihuahuas, but Staffordshire Bull Terriers (Staffys), I am not sure how you mix up the smallest breed of dog with a medium sized dog, but I assumed they were labelled as Chihuahuas so I was more inclined to be okay with it. When I spoke to LJ Hooker Belmont WA about this, they claimed the dogs must have grown in six weeks, interesting.

The breeds didn’t bother me but I requested the lease to be amended with the correct breed types. LJ Hooker Belmont WA first claimed that since the lease was already signed it couldn’t be amended, okay then, please notify the tenant of a breach in the Residential Tenancy Agreement. A few days later LJ Hooker Belmont WA forwarded me the updated lease.

Stickers

Secondly, on inspection the tenant had stickers on the walls, I informed LJ Hooker Belmont WA that the tenant was in breach of the Tenancy Agreement. LJ Hooker Belmont WA claimed Blu-Tack was okay, I had to show them the Tenancy Agreement;

“The Tenant shall not make any alterations or additions to the Premises or to alter any fixtures or fittings, furniture or chattels, or place any sign on, or paint the Premises, use Blue Tac or any other adhesive material, or drive any nails for screws into or deface any part of the Premises.”

LJ Hooker Belmont WA then claimed that the courses they were on wasn’t always up to date, I didn’t understand, had they never read a standard REIWA Residential Tenancy Agreement. I never followed up if this was resolved, though the Blu-Tack was never the issues, the issue was the tenant breached the Tenancy Agreement and I was never informed.

“Check the light”

LJ Hooker Belmont WA informs me via email;

“Could you pls let me know when someone can check the light and door locks to the property.”

I know about the door locks, but this was the first mention of a light, let me get this straight, I need to send somebody out, at my expense to “check the light”, no description of the problem, where it is located, what the tenant has tried. I ask for further clarification, LJ Hooker Belmont WA updates me with;

“Just been to the property and it’s the power point in the patio as he has an outside fridge waiting to be connected.”

I arrange for my electrician to visit the property, on return he emails me with;

“pointed out to Tenant that those 3 power points are for lighting only and can’t be used for plugging in a fridge”

So the Tenant unplugged the outdoor lighting, tried to plug in a fridge and then complained that the powerpoint was not working, I wonder why.

Related posts:

  1. Correspondence with Property Manager LJ Hooker Belmont WA – Introduction
  2. Correspondence with Property Manager LJ Hooker Belmont WA – First Tenants
  3. Correspondence with Property Manager LJ Hooker Belmont WA – Tenant Maintenance