March 29, 2017

LOGIN Wiki Changelog

home - [Mailing List]

Linux Owners Group In Newcastle (LOGIN) Wiki Welcome to LOGIN, the Linux Owners Group in Newcastle. We are a LUG (Linux Users Group) for people in the Newcastle and Hunter region of NSW Australia. We are affiliated with Linux Australia with subcommittee status Do you want to help promote our Linux club then please feel free to pass on the flyer or better still print a couple & place them on a noticeboard in your local area.

March 29, 2017 09:21 AM

March 22, 2017

Gabriel Noronha

Flir ONE Issues

FLIR ONE for iOS or Android with solid orange power light

Troubleshooting steps when the FLIR ONE has a solid red/orange power light that will not turn to blinking green:

by Gabz at March 22, 2017 04:25 AM

January 05, 2017

Gabriel Noronha

Charging point connectors & socket outlets.

Mainly for my own reference.

The New Zealand Transport Agency explanation of charging sockets and plugs.

This is pretty comprehensive and is easily applicable to Australia we have some more choice of vehicles which are not listed mainly in the hybrids but have more strict rules for imports, so no 2nd hand Japanese LEAFs here.

Their recommendation of type 2 sockets for Public AC charging, and CHADeMO and Type 2 CCS for Public DC charging is also something I agree with.

New Zealand like Australia had started to roll out Type 1 CCS but it looks like they’ll be changing all the stations to Type 2 CCS, to align with the European charging standard. Which makes more technical sense as our power girds are similar voltage and frequency.

Personally I hope Australia move to Type 2 CCS like NZ has, but at the moment all the power is in the vehicle manufacture hands, and they benefit form Type 1 CCS as Australia would become the only country in the world to have cars that are right hand drive and Type 1 CCS. Stopping any sort of importation of 2nd hand electric cars even if the rules are relaxed.

by Gabz at January 05, 2017 11:15 AM

November 07, 2016

James McDonald

Command Line xTuple DB restore on mac

This is for a restore to a remote host running postgresql on a custom port and using the pg_restore provided by pgAdmin on a mac. gzcat xtuple-2016-11-07_1412.dump.gz | \ /Applications/ \ -v -p 5434 -h -U postgres -c -d xtuple-test The backup was done using: pg_dump -h $HOST -p $PGPORT -U $PGUSER -Fc $DB | […]

by James at November 07, 2016 03:57 AM

xTuple Postbooks Edition 4.10.0 RC FTW

So for a while I was using Simple Invoices to raise invoices for my Small IT Consultancy Business. However in a short space of time I found that it just didn’t have the bells and whistles that I needed. Being an avid fan of Open Source software I looked around and wanted something with a lot […]

by James at November 07, 2016 03:04 AM

Perl Script to Parse PDF Invoice and Send Email

This script uses perl to run pdftotext to grab the text from a PDF Invoice. It parses and extracts document meta data and then uses that to construct a meaningful filename and attach and send the PDF to the correct recipient. You could automate this by placing a watch on a folder and run this […]

by James at November 07, 2016 02:51 AM

November 06, 2016

James McDonald

Just removed APCu and installed OPCache & it seems faster Understanding OpCache Out with the old in with the new yum install php56u-opcache yum remove php-pecl-apcu service php-fpm restart Run this command in your /var/www/<allyourwebsiteroots> cd /var/www find . -type f -print | grep '\.php$' | wc -l 14798 # find your php files and set # opcache.max_accelerated_files to above that number # e.g. […]

by James at November 06, 2016 10:47 PM

October 30, 2016

James McDonald

Cape Schank

by James at October 30, 2016 12:15 AM

October 24, 2016

James McDonald

“Deleted” Group Policy Deployed Printer Will Not Delete on the Client

Just had an issue where I tried to remove a printer connection on a Windows 7 Pro workstation after having deleted the printer on the Windows SBS 2011 Server (aka. Windows 2008 R2)  and on the client a dialog pops up saying that access was denied for the delete. Went back onto the server Opened the Print […]

by James at October 24, 2016 01:55 AM

October 23, 2016

James McDonald

[SOLVED] MacOS Sierra Scanning Fail

Fixed It! Update: So I just made a number of changes to the printer configuration NOT the Mac Sierra software and the scanner is now working. I’m not sure which change fixed it so I will list them all. Please if you can track down which change fixes the scanning let me know. Log into the OfficeJet […]

by James at October 23, 2016 11:01 PM

October 19, 2016

James McDonald

Updating a Paradox DB using PHP and the Paradox Extension

A few years ago I blogged about reading a paradox DB. Recently I had need of updating some records and thought I would blog about it. See below. Reading a Paradox DB Under Windows using XAMPP Firstly there doesn’t seem to be a modern Linux distro that comes with the PHP Paradox extension baked in. […]

by James at October 19, 2016 01:18 PM

October 13, 2016

James McDonald

A Favourite Quote That My Sister Introduced Me To

“Oh, the comfort, the inexpressible comfort of feeling safe with a person; having neither to weigh thoughts nor measure words, but to pour them all out, just as they are, chaff and grain together, knowing that a faithful hand will take and sift them, keep what is worth keeping, and then, with a breath of […]

by James at October 13, 2016 09:57 AM

September 26, 2016

James McDonald

VMWare Fusion conflicts with encfs on MacOS Sierra

I had a work-a-round for osxfuse not working but no longer works since the update to MacOS Sierra EncFS Password: the OSXFUSE file system is not available (23) fuse failed. Common problems: - fuse kernel module not installed (modprobe fuse) - invalid options -- see usage message But if you totally exit VMWare Fusion (This is […]

by James at September 26, 2016 12:50 PM

September 07, 2016

James McDonald

Home Sales and the Role of the Interior Designer

Just recently I’ve become mildly addicted to shows like Flip or Flop, Fixer Upper and Masters of Flip of these I think I like Masters of Flip the most. The interplay of the husband and wife as they try and renovate a home and on-sell it is very entertaining, and the entire process, from demolition day through […]

by James at September 07, 2016 05:16 AM

Develop CakePHP in 3 Locations – HOME TEST LIVE

I have a CakePHP application that I develop on my MacBook and then push to a “TEST” install environment and then across to a LIVE environment when I’m happy. In the past I’ve done the following at each instance after I have git pull | fetched | merged: Edit APP/Config/core.php and change debug, TRUE to FALSE […]

by James at September 07, 2016 04:14 AM

September 01, 2016

James McDonald

How to SELECT from between double quotes in a MySQL column and update a column in the same table

Note the following data: MariaDB [pallets3]> select options, title from menus where options != ''; +-------------------------------------------------------------------+------------------------------------------------+ | options | title | +-------------------------------------------------------------------+------------------------------------------------+ | array('title'=> "Print 150x200 Oil Pallet Labels") | Print 150x200 Oil Pallet Labels | | array('title'=> "Print 150x200 Marg Pallet Labels") | Print 150x200 Marg Pallet Labels | | array('title' => "View/Edit Shipments […]

by James at September 01, 2016 02:05 AM

August 15, 2016

James McDonald

X-Recruiting – Who would have thought

Was just checking a 301 redirect I’ve set up, and while looking at the the server output from the wget -S command I noticed that has an X-Recruiting header. Etsy I hope your innovation brings all the coders to the yard.  

by James at August 15, 2016 05:39 AM

July 15, 2016

James McDonald

C Struct Loses it’s Settings

A while ago I blogged about a Control system that commits a C Struct to a file on a disk and then reads the file and enters the C Struct data back into the control system. The operators started noticing inconsistent behaviours. And so I have had to investigate. After much trial and error I […]

by James at July 15, 2016 08:37 AM

July 13, 2016

James McDonald

Struct is 652 Bytes Fwrite writes 656 Bytes

I am not a programmer but I had the need to write a C struct to disk When I then tried to write another of the same files to try and work-a-round a problem with the system they are used on I got a slightly large (by 4 bytes) file I was compiling the C […]

by James at July 13, 2016 01:25 PM

June 25, 2016

James McDonald

array_merge – And the winning key is!

Just a note to self about PHP array_merge The later array passed into array_merge overwrites the former, also if it’s indexed with numerical keys then the values will just be appended. <?php $option_array = [ 'element' => 'ooa1', 'optionb' => 'ob1', 'different' => 'diff', 'notin2' => true ]; $oa2 = [ 'element' => 'ooa2', 'optionb' […]

by James at June 25, 2016 03:24 AM

June 22, 2016

James McDonald

OpenRPT Context Queries, Format Strings and URLs in PDFs

OpenRPT is a Report Write that is Bundled with xTuple in all it’s flavours. It’s simple and takes some getting used to in order to use it’s power When creating a custom report there is a thing called a Context Query.  These are the values that are available page_number report_name report_title report_description page_count This screenshot shows […]

by James at June 22, 2016 12:59 PM

June 19, 2016

James McDonald

Netbeans Removes Indent from // Comments

Been using netbeans for PHP development and discovered that it will remove the leading whitespace from comments and then the comments inside a block of code are hard up against the left margin which looks weird. Not sure if there is a setting to stop this behaviour but if you do the following you will […]

by James at June 19, 2016 11:45 PM

June 18, 2016

LOGIN Wiki Changelog

makerspace:home - [University of Newcastle Makerspace]

Welcome Please sign up the mailing list below if you're interested in becoming a member of a Newcastle hackerspace/makerspace. Note: There are two separate groups. University of Newcastle Makerspace Location: Building: EE Room: EE102 Access is by request to the president of the makerspace, Luke Simmons. Once this is done you will be required to pass the EE general access quiz and the EE unsupervised access quiz, in Blackboard.

June 18, 2016 01:38 PM

James McDonald

Making Weird Grunting Noises with CakePHP 3 & Twitter Bootstrap

This is how I got grunt running with the twbs/bootstrap plugin to automatically copy the CSS, JS and Fonts into my CakePHP 3 development environment. I did this on MacBookPro OSX 10.11.5. But this applies to Linux too. If anyone has better suggestions as to how this could be accomplished easier. I am open to […]

by James at June 18, 2016 02:16 AM

June 13, 2016

James McDonald

TCPDF KeyWords Doubled in Document Properties Description Tab – Acrobat Reader

This causes the keywords to double when viewed in File ==> Properties ==> Description Tab. $pdf->SetKeywords('CLAM, CLM, Schedule, Program, Meeting, Service Meeting'); This shows the keywords once only: $pdf->SetKeywords('CLAM CLM Schedule Program Meeting Service Meeting'); In short drop the comma’s and you will be fine.

by James at June 13, 2016 02:14 PM

June 12, 2016

James McDonald

CakePHP 3 Changes To Date/Time Formatting

The new date objects have different formatting strings $this->Time->format($assigned_part->start_time, 'h:mm') $this->Time->format($mtg->date, 'eeee MMMM d') The old ones here don’t work as the datetime helper have been rewritten.    

by James at June 12, 2016 12:43 PM

June 11, 2016

James McDonald

I have no idea what the problem is PHP CLI

Trying to do some PHP tutorials using vim and running php from the command line and I get…. nothing back. If it’s a syntax error (e.g. a missing line ending ; ) then no reply at all. If the syntax is correct and it’s something else then the error isn’t displayed Apparently PHP CLI is […]

by James at June 11, 2016 02:48 AM

June 09, 2016

James McDonald

CakePHP POST Failing

I was just trying to submit about 10 x 15 records… and found that cakephp was failing with a validation error. Found out it was due to the following in the php error log. [09-Jun-2016 19:16:22 Australia/Melbourne] PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on […]

by James at June 09, 2016 09:28 AM

June 08, 2016

James McDonald

Adding new fonts to TCPDF

Less agony way of doing it. Download your fonts and then run the following cd  /Users/jmcd/Sites/clam/vendor/tecnickcom/tcpdf tools/tcpdf_addfont.php -i /Users/jmcd/Downloads/liberation-sans/LiberationSans-BoldItalic.ttf cd fonts/   ls | grep libera liberationsans.ctg.z liberationsans.php liberationsans.z liberationsansb.ctg.z liberationsansb.php liberationsansb.z liberationsansbi.ctg.z liberationsansbi.php liberationsansbi.z liberationsansi.ctg.z liberationsansi.php liberationsansi.z

by James at June 08, 2016 11:30 AM

June 06, 2016

James McDonald

CakePHP – Call to a member function format() on array!

// failing validator rule $validator ->date('date') ->add('date', 'unique', [ 'rule' => 'validateUnique', 'provider' => 'table', 'message' => "One of the dates you submitted already exists!" ]); // working buildRules public function buildRules(...){ //... other rules here ... $rules->add($rules->isUnique(['date'])); } Error: Call to a member function format() on array File /Users/user/Sites/clam/vendor/cakephp/cakephp/src/Database/Type/DateTimeType.php Line: 108

by James at June 06, 2016 03:47 PM

June 02, 2016

James McDonald

CakePHP “public $paginate =” overwritten by action “$this->paginate =” Gotcha

If you have a the following code class PartsController extends AppController { /** * Index method * * @return \Cake\Network\Response|null */ public function index() { $this->paginate = [ 'contain' => ['Sections'] ]; $parts = $this->paginate($this->Parts); $this->set(compact('parts')); $this->set('_serialize', ['parts']); } and then you define a public $paginate value in the class as thus: class PartsController extends […]

by James at June 02, 2016 09:52 PM

May 29, 2016

James McDonald

CakePHP 3 – TCPDF Install and Usage

In your CakePHP top level folder (the one that has composer.json, src/, vendors/, config/, webroot/) run: composer require tecnickcom/tcpdf You should now have vendor/tecnickcom/tcpdf Now in a controller src/Controller/<ControllerName>Controller.php create an action: public function pdfView($schedule_id = null){ $this->viewBuilder()->layout('ajax'); $this->set('title', 'My Great Title'); $this->set('file_name', '2016-06' . '_June_CLM.pdf'); $this->response->type('pdf'); } Then create a view in src/Template/<ControllerName>/pdf_view.ctp class xtcpdf […]

by James at May 29, 2016 09:19 PM

May 28, 2016

James McDonald

CakePHP 3 – Escape to the Global Namespace

This code in CakePHP 3: <?php $date = '31/01/1973'; $ymd = DateTime::createFromFormat('!d/m/Y', $date)->format('Y-m-d'); Causes this error Error: Class ‘App\Controller\DateTime’ not found This code fixes it: <?php $date = '31/01/1973'; $ymd = \DateTime::createFromFormat('!d/m/Y', $date)->format('Y-m-d'); Apparently the \ backslash escapes the namespace and instead of it looking for DateTime in the current namespace it looks for it […]

by James at May 28, 2016 10:59 AM

May 25, 2016

James McDonald

Checking for port errors on Cisco Switches

Recently had a macbook pro which had a network dongle that was very hot and the network connection stopped working. Found that the dongle was sending garbled signal down the wire and the Cisco switch shutdown the port. # all status show interfaces status # port shutdown due to line errors show interfaces status | […]

by James at May 25, 2016 11:58 PM

Symantec Endpoint Protection Cloud – NIS.exe High CPU on Windows XP SP3 VMWare VMs

Just discovered that one of the patches I installed today on my VMWare hosts fixed an issue I had after installing Symantec Endpoint Protection for Small Business Cloud Hosted Edition The old ESXi build was 106549 the new one is 3872664 ( vSphere 5.1 3b ) I don’t know exactly which patch fixed it because […]

by James at May 25, 2016 07:54 AM


Secure Connection Failed An error occurred during a connection to 172.16.98.XXX. You have received an invalid certificate. Please contact the server administrator or email correspondent and give them the following information: Your certificate contains the same serial number as another certificate issued by the certificate authority. Please get a new certificate containing a unique serial […]

by James at May 25, 2016 05:19 AM

May 12, 2016

James McDonald

nginx suddenly can’t proxy to non-standard ports – Boolean SeLinux

I did an upgrade recently and suddenly nginx wasn’t forwarding requests to remote hosts on non-standard ports…. this was on a CentOS host which had seLinux enabled. Turn seLinux off temporarily setenforce 0 Does nginx now work proxying to non-standard ports? Turn it back on setenforce 1 Does nginx now fail to proxy to non-standard […]

by James at May 12, 2016 08:54 AM

May 03, 2016

James McDonald

Fixed: Second Windows App Runing under Wine 1.8.1 on OSX 10.11.4 Won’t Accept Keyboard Input

I have two wine apps I typically use. If I launch both of them then I can’t enter anything into the form fields of either. To fix this I have ran winecfg and unchecked the “Allow the window manager to control the windows” option on the Graphics tab of Wine Configuration dialog. Versions: wine-1.8.1 OSX […]

by James at May 03, 2016 01:03 PM

April 27, 2016

James McDonald

IE11 Wonky Bootstrap Rendering

Problem: Internet Explorer 11 on Windows 7 Professional renders a bootstrap website with form controls in the wrong place and the layout is corrupt Cause: Internet Explorer 11 has been configured to display legacy banking website with ancient IE8 settings Resolution: Install a meta tag in the <head></head> section of the web page. <meta http-equiv="X-UA-Compatible" content="IE=edge" /> For […]

by James at April 27, 2016 12:59 PM

April 18, 2016

James McDonald

CakePHP 2 Slightly Better Looking than Default Pagination

Just trying to make my pagination in CakePHP 2 better looking. I added the first and last links but still had a radius on my previous and next links which looked odd and my ‘last >>’ link had a square end too. So a bit ugly really. Following is an example of pagination links after I […]

by James at April 18, 2016 04:41 AM

Powered by Planet!
Last updated: June 26, 2017 05:00 PM

RSS 20 Atom