Rsync is a great tool but can be a pain if you have to jump through hoops to connect via ssh such as connecting via a different port.
A simple solution is to use the -e flag (also knows as –rsh=COMMAND). This flag allows you manually define the ssh command to use when connecting
rsync -e 'ssh -p2020' -rav ./* user@server:
Will allow me to connect to a server with SSH listening on port 2020
This morning I woke up to an email telling me that my Nexus7 that I had ordered 3 weeks ago was… “out for delivery”.
I couldn’t contain my excitement. I sat patiently waiting by my door. Finally 11 o’clock rolls around and there is a knock. I’m handed a brown parcel and hand over the obligatory signature. I close the door behind me and carefully place the box on the desk. I contemplate teasing myself and seeing how long I can hold out before opening it.
Continue reading “Nice New Nexus7” »
If you want to register custom view helpers with a module you can do so by using the service location built into the Skeleton Application and creating a module config that looks something like.
'view_helpers' => array(
'invokables' => array(
// generic view helpers
'truncate' => 'Zucchi\View\Helper\Truncate',
// form based view helpers
'bootstrapForm' => 'Zucchi\Form\View\Helper\BootstrapForm',
'bootstrapRow' => 'Zucchi\Form\View\Helper\BootstrapRow',
'bootstrapCollection' => 'Zucchi\Form\View\Helper\BootstrapCollection',
With the release of beta 5 for Zend Framework 2 I thought it time for me to tidy up and fix a few modules I created back at beta 3.
Now I’m a big fan of Twitter Bootstrap CSS framework as I’m sure a lot of other people are as well. Seeing that the Zend Skeleton Application comes with bootstrap already included it was easy enough to set up my forms using the old ZF Forms found in ZF1.
However a brand spanking new Forms component has been rolled out with ZF2. The long and the short of this new component meant that I had the opportunity to hand roll a new way of making my forms work with Twitter Bootstrap.
So, a little tinkering, a quick pull request to ZF2 to allow the definition of arbitrary options and I came up with some useful View Helpers that can be dropped into a project and used.
You can find them at https://github.com/zucchi/Zucchi.
So how to use them. Lets start by creating a new form (we’ll keep it simple for now)
Continue reading “Bootstrapping ZF2 Forms” »