# add array('type'=>'file') to the Form->create method < ?php echo $this->Form->create('Map', array('type'=>'file'));?> < ?php __('Add Map'); ?> < ?php # most fields are just normal automagic text/numeric/boolean fields echo $this->Form->input('name'); echo...
James McDonald
awk specifying multiple field separators
I want to extract the text "Windows 2008" sandwiched between [VM STORE] and "/Windows 2008.vmx" So I need two field separators ] for the left and / for the right. So for awk I use "[]/]" as the argument to -F. Then I need to trim the spaces using sed. echo "32 EDI...
Busybox ash shell workaround for not working IFS on VMWare 4ESXi
This doesn't work ~ # cat fstest.sh #!/bin/sh ALLFILES=`ls -1 "/vmfs/volumes/4c371e81-0c463360-dfe3-001d091edb9f/ERP WinXP Client/"` # I tried all sorts of things but this works with # the vmware busybox (ash) shell # this works you get correct field separation...
Splitting records by multiple spaces but not single spaces using awk
The default field separator on awk is one or more spaces so for the following vmware command output if you try to awk out a VM name which has spaces you get the first word of the VM name and not the full name. To fix you need to change the field separator in awk to...
OpenSuse 11.4 on HP Mini 110 – It works!
Talk about drama free install. Download the KDE LIVE ISO http://mirror.optus.net/opensuse/distribution/11.4/iso/openSUSE-11.4-KDE-LiveCD-i686.iso dd if=openSUSE-11.4-KDE-LiveCD-i686.iso of=/dev/sde bs=8M Where /dev/sde is my 4GB USB Key. Press F10 on the HP Mini 110...
Simple Invoices Email Setup for Windows 2003 Exchange Server
Error: "Zend Mail Protocol Exception: is unsupported SSL type" Solution: Comment out the email.secure option in $SIMPLE_INVOICES_ROOT/config/config.ini (see example below) Error 2: Authentication Unsuccessful when trying to connect to Windows 2003 Exchange Server...
Samba Domain Membership KRB5 Setup Head Scratching
Samba 3.5 documentation states: With both MIT and Heimdal Kerberos, it is unnecessary to configure the /etc/krb5.conf, and it may be detrimental. And further: MIT's, as well as Heimdal's, recent KRB5 libraries default to checking for SRV records, so they will...
How to specify the only_from option in /etc/xinetd.d/* files
Add your subnet addresses to the current (127.0.0.1) option and delimit using spaces. # default: off # description: SWAT is the Samba Web Admin Tool. Use swat \ # to configure your Samba server. To use SWAT, \ # connect to port 901 with your favorite web browser....
Upgrade your network it will save you time!
Today I fired up VMWare convertor to move a 60GB Virtual Machine running as a guest on VMWare Server 2.0 on my workstation accross to a VMWare ESXi server. I kicked the process off and it guestimated the time to completion as 8hrs and 44 minutes. Hmmm... Then after...
CakePHP – Do you want the internationalization? You can’t handle the internationalization!
Just playing with the HTML Helper link method Putting __() around a string makes it ready for internationalization in CakePHP. You create a translation file using poedit or somesuch and then CakePHP will automagically replace the contents with the other language when...
