James McDonald

Upgrade Time – A Few More Days Till Fedora 21

We are only a few days away from the Fedora 21 release.  My Upgrade Checklist Backup $HOME, /etc (settings) to external USB drive (Test random files with md5sum to make sure they are OK) Inventory installed applications and settings and make a note of what needs...

QCAD now Supports Complex Line Types

https://plus.google.com/116353478893976991600/posts/aRevgCpC1He I have been looking for an application that will do train tracks over an image...  QCAD as of version 3.7.3 now supports an extra series of "complex line types" This is why I continue to purchase the...

Change Progress DB Block Size

Been a while since I posted anything... And I found this in my drafts. I can't remember if this is correct but no one is wrong on the internet so... prostrct create db-name db-name.st -blocksize 8192 procopy $DLC/empty8.db db-name   While you can create a...

TCPDF Tables with Word Wrapping Cells

TCPDF Tables with Word Wrapping Cells

This code is used to create a table using TCPDF the example I got it from used Cell which didn't word wrap and then when switching to writeCell the borders were messed up so I had to change the code from another example to properly write the cells and their borders....

Getting a List of Email Forwards in Exchange 2010

From the Spiceworks forum: # get all mailboxes that have a forward, sort by name and select their name and forward address $fwds = get-mailbox | Where-Object { $_.ForwardingAddress -ne $null } | sort Name | select Name, ForwardingAddress # now get the primary smtp...

Virtual Box Windows XP Clonezilla Restore

JoyceMayne was offering a 100-300 for  your old PC for a new laptop deal so I had to give them my old computer before I could transfer everything to the new laptop so I used clonezilla-live-2.2.4-12-i686-pae.iso to take an image of the old Windows XP box before I...

Who’s down with Apc? It almost wasn’t me

Symptoms: You have the Apc cache engine turned on it Config/bootstrap.php and Config/core.php You are running php-fpm You run the cake console from the command line inside your app dir and you get the below error // Config/bootstrap.php // Setup a 'default' cache...

applicationCache too small to be (really) useful

I have a html5 CACHE MANIFEST file with 600+ resources listed in it totalling 78.4 megabytes Access the application on Internet Explorer 11 under windows 7 I manage to download exactly 57.16MB before it stops. The applicationCache reaches a status of 0 (UNCACHED) so...

Testing Session TimeOut with CakePHP

By default CakePHP uses the session timeout value in php.ini But sometimes you might want to specify a very short Session timeout for testing your code To do that you open Config/core.php and add a value to the "Session" Configure::write area...

CakePHP with TCPDF

This is brilliant:- http://www.martin-schenk.es/en/cakephp-2-pdf-with-tcpdf/ in View/Layout/pdf/pdf.ctp <?php header("Content-type: application/pdf"); echo $content_for_layout; But with google chrome using the $pdf->Output('filename.pdf', 'I') option you get the...

CakePHP in a subdirectory NginX

This is how I setup cakephp so I can have multiple apps in subdirectories with a shared cakephp instance. Under NGinx I setup my webroot folder as follows /var/www/html <== webroot everything served from here /var/www/cakephp-2.5.4 <== cakephp lib folder here...

Squishing your content down for Mobile Devices

As usual my experience comes just after I need it. Been working on mobile enabling a web page and am trying to get the content to display sensibly on an iPhone and a Galaxy. I'm making a lot of mistakes... I've been using pixels for button sizes and they are...

Vultr VPS Pricing

I've used Rackspace & Digital Ocean but I've only just became aware of https://www.vultr.com/ I only spend about $20USD a month on my 2GB RAM 40GB SSD VPS and I think Rackspace was around the $24 dollar mark. But Vultr is charging $15.00 a month for the same...

How I Imagine OpenDKIM works

Disclaimer: This is just what I've gleaned from Google and trial and error. So I'm not sure if the following is entirely true but this is how I imagine DKIM works. See http://dkim.org for more information A person with an email address of [email protected] wants to...

DKIM – A simple reason why dkim=fail

I have been looking at enabling Domain Keys Identified Mail using opendkim and have discovered a lot of very good howto's just by Googling But I just thought I would list a configuration mistake I made. When you create a domain key using the opendkim-genkey command if...