P: 1-800-664-0966 E: contact@floatsolutions.net

FloatSolutions is Aidan McQuay and Anne Stewart. Anne Stewart's excellent blog ElectroScribe can be found here ElectroScribe.net.

Aidan McQuay's thoughts on Drupal, PHP Development, Desktop Customization and even a few musical ramblings can be found on the blog below. Aidan has been known to contribute to the Desktop Customization scene, that work can be found on Deviant Art or Flickr. Additionally you can connect with Aidan on LinkedIn, Facebook, or Twitter.

Aidan just watched “By The People” by Carl Malamud, def worth the watch http://public.resource.org/people/

Posted December 18th, 2009 by Aidan McQuay, No Comments

Posted from Twitter.

Aidan rackspace cloud… down again ;(

Posted December 18th, 2009 by Aidan McQuay, No Comments

Posted from Twitter.

Avoid Complicated Sendmail Setups using MSMTP Sendmail Emulator

Posted December 2nd, 2009 by Aidan McQuay, No Comments

The only thing I hate more than configuring sendmail is configuring BIND. Of course, as you may already know getting sendmail up and running requires a solid BIND configuration. Even if you do get sendmail all set up and running you may still get your outgoing messages banned by the SPAMhaus for a variety of reasons.

Luckily for most people there is a viable albeit poorly promoted alternative to sendmail. This is a solutions that will work for most dedicated server and VPS web hosting solutions. I doubt that you would want a set up like this for larger mail requirements, but this should work for most web apps that just need to send out a few hundred emails a day.

What we’re going to do is use a SMTP emulator of sorts to trick PHP into using a external SMTP server for it’s outgoing mail.

What You Need

1. Download Compile and Install MSMTP

First you have to download and install the sendmail emulator


> wget http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.19/msmtp-1.4.19-w32.zip?use_mirror=softlayer
> tar xvzf msmtp-1.4.19-w32.zip
> cd msmtp-1.4.19-w32.zip
> ./configure
> make
> make install

2. Configure MSMTP

Next we need to configure the MSMTP server to use our external SMTP Server. Pretty straight forward, just replace the entries with your info from your SMTP provider.


# Set default values for all following accounts.
defaults
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log

# The SMTP server of the provider.
account provider
host mail.provider.example
from smithjoe@provider.example
auth on
user 123456789
password my_password
account default : provider

3. Tell PHP to use MSMTP

Next you have to find and replace the smtp server binary path with MSMTP. Replace the path with the location where MSMTP was installed on your distribution and where you created your config file.


sendmail_path = "/opt/local/bin/msmtp -C /var/empty/.msmtprc -t"

4. Call mail() From Your Scripts

You should now be able to call mail() from your php scripts as normal and have the mail delivered through your external provider. If you are having trouble try adding this line to your scripts to set the tmp directory properly.


putenv("TMPDIR=/tmp");

Aidan is dusting the cob webs off of my business website.

Posted November 22nd, 2009 by Aidan McQuay, No Comments

Posted from Twitter.

Num Lock Email Indicator (AutoIt + Samurize)

Posted November 21st, 2009 by Aidan McQuay, No Comments

I like visual indicators, and I’ve never really seen the point in the num lock key so one day I decided I wanted to use that light to indicate that I have unread email on my laptop.  I used AutoIt and Samurize to get a system working on my laptop. Here’s how”

AutoIt

; NUMLOCK ON

Send("{NUMLOCK on}")
SoundPlay("click.wav",1)

;NUMLOCK OFF

Send("{NUMLOCK off}")

I used autoit to create two exe’s. One that turns on the numlock and plays a sound. One that Turns off numlock.

Samurize

I then used the gmail.dll plugin to check my gmail account.  I then create two numeric alerts that trigger the exe’s I created above.

Download

Here’s the source code, exe’s and sound file:

http://floatsolutions.net/docs/numlock.zip

Publications . . .

Float's innovative design team will be publishing white papers on a whole gamut of topics relevant to our valued clients and the industry at large. To keep you clued in to new releases, we offer syndication of our publications via RSS (FeedBurner). All of our papers are available via RSS syndication, and as Adobe PDF's, or XHTML/CSS pages.

Flickr Stream . . .

Tiling Window Manager on Windows XP/ArchLinuxDrupal IRSSI-Cosole SetupBy the Power of Angela MerkelMole Rat BluesThe Focused ConfigurationThe Creation Configuration

Sound Cloud . . .

Contact Us





Client Login




P: 1-800-664-0966 E: contact@floatsolutions.net